diff --git a/projects/clr/rocclr/compiler/lib/utils/OPTIONS.def b/projects/clr/rocclr/compiler/lib/utils/OPTIONS.def index 97beab603e..385727cec0 100644 --- a/projects/clr/rocclr/compiler/lib/utils/OPTIONS.def +++ b/projects/clr/rocclr/compiler/lib/utils/OPTIONS.def @@ -747,6 +747,17 @@ OPTION(OT_BOOL, \ SCUseBufferForHsaGlobal, \ false, 0, 0, NULL, \ "HSA: use buffer instructions instead of flat for global memory") + +// -scras=int or --sc-si-opt-reg-alloc-strategy (default 0) +// 0 let shader compiler choose reg alloc strategy +// keep this updated with SCShaderSi.h +OPTION(OT_UINT32, \ + OA_RUNTIME|OVIS_SUPPORT|OVA_REQUIRED|OA_SEPARATOR_EQUAL, \ + "scras", "sc-si-opt-reg-alloc-strategy", \ + SCSIOptRegAllocStrategy, \ + 0, 0, 3, NULL, \ + "Set SI+ shader compiler register allocation strategy 0-default, " + "1-balanced, 2-minimize GPRs, 3-minimize moves (default 0).") // -fuser-no-inline -fno-user-no-inline OPTION(OT_BOOL, \