Skip to content

Commit 89f23d7

Browse files
bcheng0127igcbot
authored andcommitted
add a registry key to force spill compression
There is correctness and compiliation time regression(Blender) when force spill compression by default
1 parent 258ef8f commit 89f23d7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

visa/GraphColor.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9742,6 +9742,9 @@ unsigned GlobalRA::computeSpillSize(const LIVERANGE_LIST &spilledLRs) {
97429742

97439743
bool GlobalRA::spillSpaceCompression(int spillSize,
97449744
const int globalScratchOffset) {
9745+
if (builder.getOption(vISA_ForceSpillSpaceCompression))
9746+
return true;
9747+
97459748
// factor 1.2 is used to count in the space used for the following
97469749
// iterations. Generally, the most spill will happen in first iteration.
97479750
if ((spillSize * 1.2) <

visa/include/VISAOptionsDefs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ DEF_VISA_OPTION(vISA_GRFSpillCodeCleanup, ET_BOOL, "-spillCleanup", UNUSED,
291291
true)
292292
DEF_VISA_OPTION(vISA_SpillSpaceCompression, ET_BOOL, "-nospillcompression",
293293
UNUSED, true)
294+
DEF_VISA_OPTION(vISA_ForceSpillSpaceCompression, ET_BOOL, "-forcespillcompression",
295+
UNUSED, false)
294296
DEF_VISA_OPTION(vISA_ConsiderLoopInfoInRA, ET_BOOL, "-noloopra", UNUSED, true)
295297
DEF_VISA_OPTION(vISA_ReserveR0, ET_BOOL, "-reserveR0", UNUSED, false)
296298
DEF_VISA_OPTION(vISA_SpiltLLR, ET_BOOL, "-nosplitllr", UNUSED, true)

0 commit comments

Comments
 (0)