PMB: Run the whole-program-devirt pass during LTO at --lto-O0.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 26 May 2017 18:27:13 +0000 (18:27 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 26 May 2017 18:27:13 +0000 (18:27 +0000)
commit7730b244480c4a2b12dc3bff9892bb989f8b3e9c
tree21133c56ae187cad10fd78160d95a39c124af049
parentd45185f231d1aa710774f8866bbe2320573103f7
PMB: Run the whole-program-devirt pass during LTO at --lto-O0.

The whole-program-devirt pass needs to run at -O0 because only it
knows about the llvm.type.checked.load intrinsic: it needs to both
lower the intrinsic itself and handle it in the summary.

Differential Revision: https://reviews.llvm.org/D33571

llvm-svn: 304019
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
llvm/test/LTO/Resolution/X86/type-checked-load.ll [new file with mode: 0644]