[LoopRotate][NPM] Disable header duplication under -Oz
authorArthur Eubanks <aeubanks@google.com>
Thu, 22 Oct 2020 05:08:58 +0000 (22:08 -0700)
committerArthur Eubanks <aeubanks@google.com>
Thu, 22 Oct 2020 15:39:12 +0000 (08:39 -0700)
commitcb9ca3597727bb323576972a6a74b5897125b41a
tree36acf8a2b2f41eb957fe204c7690335b46e651f6
parent826997c46280351861be43522d4a022d8fdbc466
[LoopRotate][NPM] Disable header duplication under -Oz

It was already disabled under -Oz in
buildFunctionSimplificationPipeline(), but not in
buildModuleOptimizationPipeline()/addPGOInstrPasses().

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D89927
llvm/lib/Passes/PassBuilder.cpp
llvm/test/Transforms/LoopRotate/oz-disable.ll