Skip to content

Commit e9b4bf8

Browse files
tmparkpszymich
authored andcommitted
Turn on static profile-guided trimming
The second trial of turnning on static profile-guided trimming (cherry picked from commit 15352ce)
1 parent 6379e0d commit e9b4bf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IGC/common/igc_flags.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,11 +588,11 @@ DECLARE_IGC_REGKEY(DWORD, PrintFunctionSizeAnalysis, 0, "Print analysis data
588588
DECLARE_IGC_REGKEY(DWORD, SubroutineThreshold, 110000, "Minimal kernel size to enable subroutines", false)
589589
DECLARE_IGC_REGKEY(DWORD, SubroutineInlinerThreshold, 3000, "Subroutine inliner threshold", false)
590590
DECLARE_IGC_REGKEY(bool, ControlKernelTotalSize, true, "Control kernel total size", true)
591-
DECLARE_IGC_REGKEY(bool, StaticProfilingForInliningTrimming, 0, "Enable static analysis in the kernel trimming", true)
591+
DECLARE_IGC_REGKEY(bool, StaticProfilingForInliningTrimming, 1, "Enable static analysis in the kernel trimming", true)
592592
DECLARE_IGC_REGKEY(debugString, SelectiveTrimming, 0, "Choose a specific function to trim", true)
593593
DECLARE_IGC_REGKEY(bool, ControlInlineImplicitArgs, true, "Avoid trimming functions with implicit args", true)
594594
DECLARE_IGC_REGKEY(DWORD, ControlInlineTinySize, 200, "Tiny function size for controlling kernel total size", true)
595-
DECLARE_IGC_REGKEY(DWORD, ControlInlineTinySizeForSizeContribution, 100, "Tiny function size for controlling kernel total size", true)
595+
DECLARE_IGC_REGKEY(DWORD, ControlInlineTinySizeForSizeContribution, 100, "Tiny function size for controlling kernel total size for static profile-guided trimming", true)
596596
DECLARE_IGC_REGKEY(DWORD, ControlInlineSizeContribution, 400, "The size contribution of a function for controlling kernel total size", true)
597597
DECLARE_IGC_REGKEY(DWORD, PrintControlKernelTotalSize, 0, "Print Control kernel total size", true)
598598
DECLARE_IGC_REGKEY(bool, AddNoInlineToTrimmedFunctions, false, "Tell late passes not to inline trimmed functions", false)

0 commit comments

Comments
 (0)