From: Owen Anderson Date: Thu, 26 Feb 2009 04:47:57 +0000 (+0000) Subject: Enable stack slot coloring DCE. Evan's spiller fixes were needed before this could... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=130abb29cc9306a9d447d0e46041e242583e01fd;p=oota-llvm.git Enable stack slot coloring DCE. Evan's spiller fixes were needed before this could happen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65501 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/StackSlotColoring.cpp b/lib/CodeGen/StackSlotColoring.cpp index 60b8fad9dfd..4fedc1a0421 100644 --- a/lib/CodeGen/StackSlotColoring.cpp +++ b/lib/CodeGen/StackSlotColoring.cpp @@ -30,12 +30,7 @@ using namespace llvm; static cl::opt DisableSharing("no-stack-slot-sharing", cl::init(false), cl::Hidden, - cl::desc("Surpress slot sharing during stack coloring")); - -static cl::opt -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 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); }