[LLVMbugs] [Bug 24145] New: Patchpoints with symbolic destinations emit indirect calls

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 15 22:20:32 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24145

            Bug ID: 24145
           Summary: Patchpoints with symbolic destinations emit indirect
                    calls
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: hfinkel at anl.gov
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The code added in r235483 to handle patchpoints with symbolic destinations in
X86, did so by loading the address of the symbol into a register and then
making an indirect call. This seems needlessly inefficient, instead of:

; CHECK:       movabsq $_foo, %r11
; CHECK-NEXT:  callq   *%r11

we should just emit:

  callq        _foo

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150716/a383b756/attachment.html>


More information about the llvm-bugs mailing list