diff options
| author | Owen Anderson <resistor@mac.com> | 2009-02-26 04:47:57 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-02-26 04:47:57 +0000 |
| commit | 5c53a46297dc66f74cf5f01b87e5caf8c3a7442c (patch) | |
| tree | e8f238ae74ed795503a8f8a3afafad8b0103380a | |
| parent | adf40d4bef3329a6c7597e71c5e185d096050b3d (diff) | |
| download | bcm5719-llvm-5c53a46297dc66f74cf5f01b87e5caf8c3a7442c.tar.gz bcm5719-llvm-5c53a46297dc66f74cf5f01b87e5caf8c3a7442c.zip | |
Enable stack slot coloring DCE. Evan's spiller fixes were needed before this could happen.
llvm-svn: 65501
| -rw-r--r-- | llvm/lib/CodeGen/StackSlotColoring.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/StackSlotColoring.cpp b/llvm/lib/CodeGen/StackSlotColoring.cpp index 60b8fad9dfd..4fedc1a0421 100644 --- a/llvm/lib/CodeGen/StackSlotColoring.cpp +++ b/llvm/lib/CodeGen/StackSlotColoring.cpp @@ -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); } |

