From e81739b759cc5c876395138ac3795b3efecfcdc8 Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 14 Apr 2015 14:53:58 -0400
Subject: [PATCH] P4 to Git Change 1140647 by yaxunl@yaxunl_stg_win50 on
2015/04/14 14:38:32
ECR #304775 - Add option to turn on/off SCOption_LIVENESS_BASED_INSTRUCTION_SCHEDULING.
Affected files ...
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/scwrapper/scState.cpp#35 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/OPTIONS.def#123 edit
---
rocclr/compiler/lib/utils/OPTIONS.def | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/rocclr/compiler/lib/utils/OPTIONS.def b/rocclr/compiler/lib/utils/OPTIONS.def
index 12af6c4270..56057b14aa 100644
--- a/rocclr/compiler/lib/utils/OPTIONS.def
+++ b/rocclr/compiler/lib/utils/OPTIONS.def
@@ -747,7 +747,15 @@ OPTION(OT_BOOL, \
SCUseBufferForHsaGlobal, \
false, 0, 0, NULL, \
"HSA: use buffer instructions instead of flat for global memory")
-
+
+// -fsc-live-sched -fno-sc-live-sched
+OPTION(OT_BOOL, \
+ OA_RUNTIME|OA_RUNTIME|OVIS_SUPPORT|OVA_DISALLOWED|OFA_PREFIX_F, \
+ "sc-live-sched", NULL, \
+ SCLiveSched, \
+ false, 0, 0, NULL, \
+ "SC turn on/off liveness based instruction scheduling (default off)")
+
// -scras=int or --sc-si-opt-reg-alloc-strategy (default 4)
// 4 let OCL compiler choose SC reg alloc strategy by heuristic
// keep this updated with SCShaderSi.h