[PATCH] D25854: [lto] Kill undefined extern_weak declarations before opt
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 20 17:26:05 PDT 2016
eugenis created this revision.
eugenis added a reviewer: pcc.
eugenis added a subscriber: llvm-commits.
eugenis set the repository for this revision to rL LLVM.
Herald added a subscriber: mehdi_amini.
If an extern_weak declaration is resolved as undefined, RAUW it with
a null pointer and remove it from the module before running LTO
Besides the obvious codegen improvement, it allows CFI to avoid
generating jump tables for such functions (which can not be done
correctly, as a jump table entry can not be weak).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6597 bytes
Desc: not available
More information about the llvm-commits