We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cde7162 commit aa21b8cCopy full SHA for aa21b8c
lib/Transforms/IPO/PassManagerBuilder.cpp
@@ -342,6 +342,8 @@ void PassManagerBuilder::addFunctionSimplificationPasses(
342
// Run instcombine after redundancy elimination to exploit opportunities
343
// opened up by them.
344
addInstructionCombiningPass(MPM);
345
+ if (OptLevel > 1)
346
+ MPM.add(createGVNPass(DisableGVNLoadPRE)); // Remove redundancies
347
addExtensionsToPM(EP_Peephole, MPM);
348
MPM.add(createJumpThreadingPass()); // Thread jumps
349
MPM.add(createCorrelatedValuePropagationPass());
0 commit comments