aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Michel <scottm@aero.org>2008-12-09 03:37:19 +0000
committerScott Michel <scottm@aero.org>2008-12-09 03:37:19 +0000
commite07d3dead1f6948e43d9611197aaac44db33e5b3 (patch)
tree01a12c5371ee946b70c848a48eab7fa01e9ab44b
parent52370a10891673c1065a354f2497c22b82a32b1b (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60738 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/CellSPU/SPUISelLowering.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Target/CellSPU/SPUISelLowering.cpp b/lib/Target/CellSPU/SPUISelLowering.cpp
index 2b35e76595..031d068c54 100644
--- a/lib/Target/CellSPU/SPUISelLowering.cpp
+++ b/lib/Target/CellSPU/SPUISelLowering.cpp
@@ -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 @@ SPUTargetLowering::SPUTargetLowering(SPUTargetMachine &TM)
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 *