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: unassignedb...@nondot.org
          Reporter: sland...@gmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to