Skip to content

Commit 23b4bd8

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 2ec8373 commit 23b4bd8

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
@@ -583,10 +583,10 @@ DECLARE_IGC_REGKEY(DWORD, PrintFunctionSizeAnalysis, 0, "Print analysis data
583583
DECLARE_IGC_REGKEY(DWORD, SubroutineThreshold, 110000, "Minimal kernel size to enable subroutines", false)
584584
DECLARE_IGC_REGKEY(DWORD, SubroutineInlinerThreshold, 3000, "Subroutine inliner threshold", false)
585585
DECLARE_IGC_REGKEY(bool, ControlKernelTotalSize, true, "Control kernel total size", true)
586-
DECLARE_IGC_REGKEY(bool, StaticProfilingForInliningTrimming, 0, "Enable static analysis in the kernel trimming", true)
586+
DECLARE_IGC_REGKEY(bool, StaticProfilingForInliningTrimming, 1, "Enable static analysis in the kernel trimming", true)
587587
DECLARE_IGC_REGKEY(bool, ControlInlineImplicitArgs, true, "Avoid trimming functions with implicit args", true)
588588
DECLARE_IGC_REGKEY(DWORD, ControlInlineTinySize, 200, "Tiny function size for controlling kernel total size", true)
589-
DECLARE_IGC_REGKEY(DWORD, ControlInlineTinySizeForSizeContribution, 100, "Tiny function size for controlling kernel total size", true)
589+
DECLARE_IGC_REGKEY(DWORD, ControlInlineTinySizeForSizeContribution, 100, "Tiny function size for controlling kernel total size for static profile-guided trimming", true)
590590
DECLARE_IGC_REGKEY(DWORD, ControlInlineSizeContribution, 400, "The size contribution of a function for controlling kernel total size", true)
591591
DECLARE_IGC_REGKEY(DWORD, PrintControlKernelTotalSize, 0, "Print Control kernel total size", true)
592592
DECLARE_IGC_REGKEY(bool, AddNoInlineToTrimmedFunctions, false, "Tell late passes not to inline trimmed functions", false)

0 commit comments

Comments
 (0)