[llvm] r176687 - R600/SI: Use source scheduler
Michel Danzer
michel.daenzer at amd.com
Fri Mar 8 02:58:02 PST 2013
Author: daenzer
Date: Fri Mar 8 04:58:01 2013
New Revision: 176687
URL: http://llvm.org/viewvc/llvm-project?rev=176687&view=rev
Log:
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 at amd.com>
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
Modified:
llvm/trunk/lib/Target/R600/SIISelLowering.cpp
Modified: llvm/trunk/lib/Target/R600/SIISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIISelLowering.cpp?rev=176687&r1=176686&r2=176687&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/R600/SIISelLowering.cpp Fri Mar 8 04:58:01 2013
@@ -68,6 +68,8 @@ SITargetLowering::SITargetLowering(Targe
setTargetDAGCombine(ISD::SELECT_CC);
setTargetDAGCombine(ISD::SETCC);
+
+ setSchedulingPreference(Sched::Source);
}
SDValue SITargetLowering::LowerFormalArguments(
More information about the llvm-commits
mailing list