Enable stack slot coloring DCE. Evan's spiller fixes were needed before this could...
authorOwen Anderson <resistor@mac.com>
Thu, 26 Feb 2009 04:47:57 +0000 (04:47 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 26 Feb 2009 04:47:57 +0000 (04:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65501 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/StackSlotColoring.cpp

index 60b8fad9dfdc3cb6444287219d335714cf290b51..4fedc1a0421f5f63e2f70622c505dd7e7f4c52d9 100644 (file)
@@ -30,12 +30,7 @@ using namespace llvm;
 static cl::opt<bool>
 DisableSharing("no-stack-slot-sharing",
              cl::init(false), cl::Hidden,
-             cl::desc("Surpress slot sharing during stack coloring"));
-
-static cl::opt<bool>
-EnableDCE("enable-ssc-dce",
-               cl::init(false), cl::Hidden,
-               cl::desc("Enable slot coloring DCE"));
+             cl::desc("Suppress slot sharing during stack coloring"));
 
 static cl::opt<int> DCELimit("ssc-dce-limit", cl::init(-1), cl::Hidden);
 
@@ -342,7 +337,7 @@ bool StackSlotColoring::runOnMachineFunction(MachineFunction &MF) {
     Assignments[i].clear();
   Assignments.clear();
 
-  if (EnableDCE) {
+  if (Changed) {
     for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I)
       Changed |= removeDeadStores(I);
   }