Skip to content

Commit cf446fe

Browse files
srividyakarumurisys_zuul
authored andcommitted
Add the debug flags to limit number of constants to fold
Change-Id: I0f18be527e57730c4f9242d2959c6952524400d3
1 parent e1ea54e commit cf446fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

IGC/common/igc_flags.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ DECLARE_IGC_REGKEY(DWORD,FoldsToConstPropThreshold, 1, "Set the threshol
162162
DECLARE_IGC_REGKEY(DWORD,FoldsToSourceThreshold, 1, "Set the threshold for finding interesting constant. This is for the number of instructions that translate to a mov. i.e., Multiplication or Division by 1", false)
163163
DECLARE_IGC_REGKEY(DWORD, ConstantLoadTypeCheck, 0, "Checks the type of the load instruction for finding interesting constant; 0 for skip type check, 1 for Integer and 2 for Float", false)
164164
DECLARE_IGC_REGKEY(bool, DisableDynamicConstantFolding, false, "Disable Dynamic Constant Folding", false)
165+
DECLARE_IGC_REGKEY(bool, EnableLimitForConstantFolding, false, "Enable limit for constant folding", false)
166+
DECLARE_IGC_REGKEY(DWORD, LimitNumberOfConstantsToFold, 0, "Set the limit for number of constants to fold", false)
165167
DECLARE_IGC_REGKEY(bool, DisableDynamicTextureFolding, false, "Disable Dynamic Texture Folding", false)
166168
DECLARE_IGC_REGKEY(bool, DisableRectListOpt, false, "Disable Rect List optimization", false)
167169

0 commit comments

Comments
 (0)