Skip to content

Commit 4f438da

Browse files
fftzengigcbot
authored andcommitted
Remove unused SLM
Check if the SLM is used in the final result. If not, remove it to reduce the SLM size and load/store.
1 parent 4e60b64 commit 4f438da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

IGC/common/igc_flags.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ DECLARE_IGC_REGKEY(bool, EnableSplitIndirectEEtoSel, true, "Enable the split
223223
DECLARE_IGC_REGKEY(DWORD, SplitIndirectEEtoSelThreshold, 8, "Split indirect extractelement cost threshold", false)
224224
DECLARE_IGC_REGKEY(bool, DisableImmConstantOpt, false, "Disable IGC IndirectICBPropagaion optimization", false)
225225
DECLARE_IGC_REGKEY(DWORD,MaxImmConstantSizePushed, 256, "Set the max size of immediate constant buffer pushed", false)
226+
DECLARE_IGC_REGKEY(bool, RemoveUnusedSLM, true, "Remove SLM that are not used", false)
226227
DECLARE_IGC_REGKEY(bool, EnableCustomLoopVersioning, true, "Enable IGC to do custom loop versioning", false)
227228
DECLARE_IGC_REGKEY(bool, DisableMCSOpt, false, "Disable IGC to run MCS optimization", false)
228229
DECLARE_IGC_REGKEY(bool, DisableGatingSimilarSamples, false, "Disable Gating of similar sample instructions", false)

0 commit comments

Comments
 (0)