https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870

--- Comment #11 from Sam James <sjames at gcc dot gnu.org> ---
Without -fprofile-generate:
│ 000000000001ed00 <_Py_Check_ArgsIterable>:
│ _Py_Check_ArgsIterable():
│      mov    0x18(%rdx),%rax
│      cmpq   $0x0,0xe8(%rax)
│      je     1ed20 <_Py_Check_ArgsIterable+0x20>
│      xor    %eax,%eax
│      ret
│      nopl   0x0(%rax)
│      data16 cs nopw 0x0(%rax,%rax,1)
│      push   %r15
│      push   %r14
│      push   %rbx
│      mov    %rdi,%rbx
│      sub    $0x10,%rsp
│      mov    %rdx,%rdi
│      mov    %rdx,%r15
│      mov    %rsi,%r14
│      call   1ed3a <_Py_Check_ArgsIterable+0x3a>
│  R_X86_64_PLT32      PySequence_Check-0x4
│      test   %eax,%eax
│      je     1ed4a <_Py_Check_ArgsIterable+0x4a>
│      xor    %eax,%eax
│      add    $0x10,%rsp
│      pop    %rbx
│      pop    %r14
│      pop    %r15
│      ret
│      mov    %rbx,%rdi
│      call   1ed52 <_Py_Check_ArgsIterable+0x52>
│  R_X86_64_PLT32      _PyErr_Clear-0x4

With -fprofile-generate:
 +00000000000018d0 <_Py_Check_ArgsIterable>:
│ +_Py_Check_ArgsIterable():
│ +     sub    $0x28,%rsp
│ +     mov    0x0(%rip),%rax
│ + R_X86_64_GOTTPOFF   __gcov_indirect_call-0x4
│ +     mov    %rdi,%r9
│ +     mov    %rsi,%rcx
│ +     cmpq   $0x0,%fs:(%rax)
│ +     jne    1920 <_Py_Check_ArgsIterable+0x50>
│ +     cmpq   $0x0,0x0(%rip)
│ + R_X86_64_PC32       .bss+0xb6fb
│ +     je     1960 <_Py_Check_ArgsIterable+0x90>
│ +     mov    0x18(%rdx),%rax
│ +     cmpq   $0x0,0xe8(%rax)
│ +     je     1990 <_Py_Check_ArgsIterable+0xc0>
│ +     incq   0x0(%rip)
│ + R_X86_64_PC32       .bss+0xb734
│ +     xor    %eax,%eax
│ +     add    $0x28,%rsp
│ +     ret
│ +     nopl   (%rax)
│ +     data16 cs nopw 0x0(%rax,%rax,1)
│ +     mov    %rsi,0x10(%rsp)
│ +     mov    %rdi,0x8(%rsp)
│ +     lea    0x0(%rip),%rsi
│ + R_X86_64_PC32       _Py_Check_ArgsIterable-0x4
│ +     mov    $0x4f5d9de8,%edi
│ +     mov    %rdx,0x18(%rsp)
│ +     call   1940 <_Py_Check_ArgsIterable+0x70>
│ + R_X86_64_PLT32      __gcov_indirect_call_profiler_v4-0x4
│ +     cmpq   $0x0,0x0(%rip)
│ + R_X86_64_PC32       .bss+0xb6fb
│ +     mov    0x18(%rsp),%rdx
│ +     mov    0x10(%rsp),%rcx
│ +     mov    0x8(%rsp),%r9
│ +     jne    18f2 <_Py_Check_ArgsIterable+0x22>
│ +     nopl   0x0(%rax)
│ +     mov    0x0(%rip),%rax
│ + R_X86_64_PC32       __gcov_time_profiler_counter-0x4
│ +     inc    %rax
│ +     mov    %rax,0x0(%rip)
│ + R_X86_64_PC32       __gcov_time_profiler_counter-0x4
│ +     mov    %rax,0x0(%rip)
│ + R_X86_64_PC32       .bss+0xb6fc
│ +     mov    0x18(%rdx),%rax
│ +     cmpq   $0x0,0xe8(%rax)
│ +     jne    1904 <_Py_Check_ArgsIterable+0x34>
│ +     nopw   0x0(%rax,%rax,1)
│ +     mov    %rdx,%rdi
[...]

Reply via email to