[llvm-commits] [llvm] r60738 - /llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp

Scott Michel scottm at aero.org
Mon Dec 8 19:37:20 PST 2008


Author: pingbak
Date: Mon Dec  8 21:37:19 2008
New Revision: 60738

URL: http://llvm.org/viewvc/llvm-project?rev=60738&view=rev
Log:
CellSPU:
- Change default scheduling preference to list-burr, which produces somewhat
  better code than the default. Could also use list-tdrr, but need to ask
  dev list about the appropriate handy mnemonic before commiting.

Modified:
    llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp

Modified: llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp?rev=60738&r1=60737&r2=60738&view=diff

==============================================================================
--- llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp Mon Dec  8 21:37:19 2008
@@ -28,6 +28,7 @@
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/MathExtras.h"
 #include "llvm/Target/TargetOptions.h"
+#include "llvm/CodeGen/SchedulerRegistry.h"
 
 #include <map>
 
@@ -415,8 +416,10 @@
 
   computeRegisterProperties();
 
-  // Set other properties:
-  setSchedulingPreference(SchedulingForLatency);
+  // Set pre-RA register scheduler default to BURR, which produces slightly
+  // better code than the default (could also be TDRR, but TargetLowering.h
+  // needs a mod to support that model):
+  setSchedulingPreference(SchedulingForRegPressure);
 }
 
 const char *





More information about the llvm-commits mailing list