Skip to content

Commit e90e360

Browse files
tmparkArtem Gindinson
authored and
Artem Gindinson
committed
Turn on static profile-guided trimming
The second trial of turnning on static profile-guided trimming (cherry picked from commit 15352ce)
1 parent f99cfbc commit e90e360

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IGC/common/igc_flags.h

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

0 commit comments

Comments
 (0)