[PATCH] D11421: New interface to enable shrink wrapping

Kit Barton kbarton at ca.ibm.com
Fri Jul 24 11:25:30 PDT 2015

kbarton added inline comments.

Comment at: lib/CodeGen/Passes.cpp:539
@@ -541,4 +538,3 @@
   // Insert prolog/epilog code.  Eliminate abstract frame index references...
-  if (getEnableShrinkWrap())
-    addPass(&ShrinkWrapID);
+  addPass(createShrinkWrapPass());
This will add shrink wrapping all the time. I think it makes more sense to guard this by (getOptLevel() != CodeGenOpt::None),  as is done below for addMachineLateOptimization().
I will make this change in the next revision. 


More information about the llvm-commits mailing list