[llvm-bugs] [Bug 41814] New: Re-order functions instead of in-lining

via llvm-bugs llvm-bugs at lists.llvm.org
Thu May 9 06:22:47 PDT 2019


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

            Bug ID: 41814
           Summary: Re-order functions instead of in-lining
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: slandden at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

I am reporting this here so that I might get some technical feed-back on how
this will interact with ldd.

There are many cases where function can be optimized by ordering them in a
specific way. If a function is only called by a single other function in the
same shared library, it should always be after the function that calls it.

There are fancier optimizations possible too, such as having memmove be both
before and after memcpy, split on the branch, or jumping into the middle of a
function when they do identical calculations (the function merger could
probably be adapted to help with this), but this bug is only for simple
re-ordering (more bugs can be opened when this is fixed).

-- 
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/20190509/f2eb6630/attachment.html>


More information about the llvm-bugs mailing list