Fix a few old-GCC warnings. No functional change.
[oota-llvm.git] / lib / CodeGen / Passes.cpp
index 9564b5dbe1eba988a9095a3b421436ef18450d78..a6dd5decbea7935bc123ff1bcd70346494aee1dc 100644 (file)
@@ -529,6 +529,10 @@ void TargetPassConfig::addMachineSSAOptimization() {
   // instructions dead.
   addPass(&OptimizePHIsID);
 
+  // This pass merges large allocas. StackSlotColoring is a different pass
+  // which merges spill slots.
+  addPass(&StackColoringID);
+
   // If the target requests it, assign local variables to stack slots relative
   // to one another and simplify frame index references where possible.
   addPass(&LocalStackSlotAllocationID);