[llvm-bugs] [Bug 35938] New: ThinLTO inline functions that should be discarded

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 12 15:04:50 PST 2018


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

            Bug ID: 35938
           Summary: ThinLTO inline functions that should be discarded
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Linker
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvm-bugs at lists.llvm.org, tejohnson at google.com

Created attachment 19672
  --> https://bugs.llvm.org/attachment.cgi?id=19672&action=edit
testcase

In the attached testcase each file has a different weak function foo.

The first file is compiled to ELF. The second one is compiled to bitcode. The
linker selects the function foo from the first (ELF) object and LTO is expected
to drop the second one.

Unfortunately ThinLTO internalizes the second function instead of dropping it.
This means that llvm can now inline it.

-- 
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/20180112/efc2c540/attachment-0001.html>


More information about the llvm-bugs mailing list