[Patch] Add TargetLibraryInfo in LTO passes builder

Yi Jiang yjiang at apple.com
Fri Dec 6 17:32:04 PST 2013


Hi Bob, Bill, etc.

It looks like currently we do not add TargetLibraryInfo in LTO passes builder. My recent patch r196544  about simplifying library call is highly dependent on this information since we only apply this transformation  in certain OS X or IOS version.  Therefore,there are some linking failures on Apple internal buildbot with -flto.  The attached patch is  to add this information and solve the linking failure. Could you guys take a look at it?  Also I have difficult time creating the test cases. I tried to mimic the ones in  test/lib/LTO but found out that the function body will be always cleaned up by SCCP, any suggestions on this? Thank you very much. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libinfo.patch
Type: application/octet-stream
Size: 1467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131206/5b883ac9/attachment.obj>


More information about the llvm-commits mailing list