]> granicus.if.org Git - llvm/commit
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)
commit5ae6e909e043ac39283553c9130527cff99b2f0e
tree25a7df0aac345db88aeb0d00c7604cfe63da47d5
parent3c9e129f1aeade135fd2008a4befba4a78afbad5
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304019 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/PassManagerBuilder.cpp
test/LTO/Resolution/X86/type-checked-load.ll [new file with mode: 0644]