[Patch] Add TargetLibraryInfo in LTO passes builder
Duncan P. N. Exon Smith
dexonsmith at apple.com
Sat Dec 7 01:56:44 PST 2013
On 2013 Dec 6, at 17:32, Yi Jiang <yjiang at apple.com> wrote:
> 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.
Hi Yi,
Unexported functions are given internal linkage by -internalize (and then can be optimized away by -ipsccp and -globalopt). You need to use -exported-symbol=foo. There’s an example of its use in test/LTO/cfi_endproc.ll.
Cheers,
Duncan
More information about the llvm-commits
mailing list