Displaying 1 result from an estimated 1 matches for "enableloopinterchange".
2017 Dec 21
2
Pass ordering - GVN vs. loop optimizations
...<I probably want to add some SimplifyCfg pass here, but
// that's a separate issue>
MPM.add(createLoopIdiomPass()); // Recognize idioms like
memset.
addExtensionsToPM(EP_LateLoopOptimizations, MPM);
MPM.add(createLoopDeletionPass()); // Delete dead loops
if (EnableLoopInterchange) {
MPM.add(createLoopInterchangePass()); // Interchange loops
MPM.add(createCFGSimplificationPass());
}
if (!DisableUnrollLoops)
MPM.add(createSimpleLoopUnrollPass()); // Unroll small loops
addExtensionsToPM(EP_LoopOptimizerEnd, MPM);
// <GVN is now immediately after loop...