[llvm-commits] [llvm] r52933 - /llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp

Evan Cheng evan.cheng at apple.com
Mon Jun 30 15:33:16 PDT 2008


Author: evancheng
Date: Mon Jun 30 17:33:16 2008
New Revision: 52933

URL: http://llvm.org/viewvc/llvm-project?rev=52933&view=rev
Log:
Don't run stack slot coloring if -fast.

Modified:
    llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp

Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp?rev=52933&r1=52932&r2=52933&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Mon Jun 30 17:33:16 2008
@@ -99,7 +99,8 @@
   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 @@
   PM.add(createRegisterAllocator());
 
   // Perform stack slot coloring.
-  PM.add(createStackSlotColoringPass());
+  if (!Fast)
+    PM.add(createStackSlotColoringPass());
 
   if (PrintMachineCode)
     PM.add(createMachineFunctionPrinterPass(cerr));





More information about the llvm-commits mailing list