https://sourceware.org/bugzilla/show_bug.cgi?id=34143

            Bug ID: 34143
           Summary: cpu_flags_from_attr is expensive
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: andi-bz at firstfloor dot org
  Target Milestone: ---

On x86 / skylake

Perhaps this should be cached?

awk 'BEGIN { for (i = 0; i < 10000000; i++) { print " mov %eax,%eax" } } ' | as

    17.75%  as-new   as-new                [.] match_template
            |
             --17.43%--match_template
                       md_assemble
                       read_a_source_file
                       main
                       __libc_start_call_main
                       __libc_start_main@@GLIBC_2.34
                       _start

    11.50%  as-new   as-new                [.] cpu_flags_from_attr
            |
            ---cpu_flags_from_attr
               |
               |--10.29%--cpu_flags_match
               |          |
               |          |--6.21%--match_template
               |          |          md_assemble
               |          |          read_a_source_file
               |          |          main
               |          |          __libc_start_call_main
               |          |          __libc_start_main@@GLIBC_2.34
               |          |          _start
               |          |
               |           --4.08%--parse_insn
               |                     md_assemble
               |                     read_a_source_file
               |                     main
               |                     __libc_start_call_main
               |                     __libc_start_main@@GLIBC_2.34
               |                     _start
               |
                --1.21%--check_VecOperands

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to