summaryrefslogtreecommitdiff
authorMichel Danzer <michel.daenzer@amd.com>2013-03-08 10:58:01 (GMT)
committer Tom Stellard <thomas.stellard@amd.com>2013-04-03 19:04:28 (GMT)
commita4de1e1811c428fd5df45fccf19fe5702f77fc0f (patch) (side-by-side diff)
tree0be93b8d48eac94f90c534e7173a92cd1331a420
parent18e156676aae89aa23f1cc8b4ffbf2aebb4349bc (diff)
downloadllvm-a4de1e1811c428fd5df45fccf19fe5702f77fc0f.zip
llvm-a4de1e1811c428fd5df45fccf19fe5702f77fc0f.tar.gz
R600/SI: Use source scheduler
This is certainly not the last word on scheduling for this target, but right now this allows a few apps to run / finish with radeonsi, most notably UT2004 / Lightsmark. They fail to compile some shaders with the default scheduler because it ends up trying to spill registers, which we don't support yet (and which is probably a bad idea in general for performance if it can be avoided). NOTE: This is a candidate for the Mesa stable branch. Reviewed-by: Christian K├Ânig <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176687 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit d787c047bcc5d0d81743f9d4403d5c54fe4757fe)
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--lib/Target/R600/SIISelLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/R600/SIISelLowering.cpp b/lib/Target/R600/SIISelLowering.cpp
index 81cd38db..cf5db06 100644
--- a/lib/Target/R600/SIISelLowering.cpp
+++ b/lib/Target/R600/SIISelLowering.cpp
@@ -58,6 +58,8 @@ SITargetLowering::SITargetLowering(TargetMachine &TM) :
setTargetDAGCombine(ISD::SELECT_CC);
setTargetDAGCombine(ISD::SETCC);
+
+ setSchedulingPreference(Sched::Source);
}
MachineBasicBlock * SITargetLowering::EmitInstrWithCustomInserter(