X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FLLVMTargetMachine.cpp;h=97fe35c2f4b09c72ab3d2821a905b7e65b43c2ca;hb=126d90770bdb17e6925b2fe26de99aa079b7b9b3;hp=73f2902d9a060c0c5582ef33a412242c62e8090e;hpb=3f32d65912b4da23793dab618d981be2ce11c331;p=oota-llvm.git diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 73f2902d9a0..97fe35c2f4b 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -38,10 +38,6 @@ static cl::opt EnableSinking("enable-sinking", cl::init(false), cl::Hidden, cl::desc("Perform sinking on machine code")); static cl::opt -EnableStackColoring("stack-coloring", - cl::init(true), cl::Hidden, - cl::desc("Perform stack slot coloring")); -static cl::opt EnableLICM("machine-licm", cl::init(false), cl::Hidden, cl::desc("Perform loop-invariant code motion on machine code")); @@ -103,7 +99,7 @@ LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM, PM.add(createRegisterAllocator()); // Perform stack slot coloring. - if (EnableStackColoring) + if (!Fast) PM.add(createStackSlotColoringPass()); if (PrintMachineCode) // Print the register-allocated code @@ -240,7 +236,7 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(PassManagerBase &PM, PM.add(createRegisterAllocator()); // Perform stack slot coloring. - if (EnableStackColoring) + if (!Fast) PM.add(createStackSlotColoringPass()); if (PrintMachineCode)