From: Evan Cheng Date: Mon, 30 Jun 2008 22:33:16 +0000 (+0000) Subject: Don't run stack slot coloring if -fast. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9ef4c5302eb547936f6586ece880f31104d2f801;p=oota-llvm.git Don't run stack slot coloring if -fast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52933 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 1c8ce0a44c4..97fe35c2f4b 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -99,7 +99,8 @@ LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM, PM.add(createRegisterAllocator()); // Perform stack slot coloring. - PM.add(createStackSlotColoringPass()); + if (!Fast) + PM.add(createStackSlotColoringPass()); if (PrintMachineCode) // Print the register-allocated code PM.add(createMachineFunctionPrinterPass(cerr)); @@ -235,7 +236,8 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(PassManagerBase &PM, PM.add(createRegisterAllocator()); // Perform stack slot coloring. - PM.add(createStackSlotColoringPass()); + if (!Fast) + PM.add(createStackSlotColoringPass()); if (PrintMachineCode) PM.add(createMachineFunctionPrinterPass(cerr));