Skip to content

Commit 614876a

Browse files
itsimbaligcbot
authored andcommitted
[Autobackout][FuncReg]Revert of change: 80cec3f
disable LICM when unmasked mode is set Loop invariant code motion is known to break unmasked functions, as it may move code in and out of these unmasked functions. Best one should just disable LICM whenever unmasked mode is used. LICM is disabled after unmasked functions are inlined.
1 parent fc33d7c commit 614876a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,6 @@ static void AddLegalizationPasses(CodeGenContext& ctx, IGCPassManager& mpm, PSSi
365365
IGC_SET_FLAG_VALUE(FastCompileRA, 1);
366366
IGC_SET_FLAG_VALUE(HybridRAWithSpill, 1);
367367
}
368-
// Disable loop invariant motion after Unmasked functions are inlined
369-
// at optimization phase
370-
if (IGC_IS_FLAG_ENABLED(EnableUnmaskedFunctions) &&
371-
IGC_IS_FLAG_DISABLED(LateInlineUnmaskedFunc)) {
372-
IGC_SET_FLAG_VALUE(allowLICM, false);
373-
}
374368

375369
if (IGC_IS_FLAG_ENABLED(ForceAllPrivateMemoryToSLM) ||
376370
IGC_IS_FLAG_ENABLED(ForcePrivateMemoryToSLMOnBuffers))

0 commit comments

Comments
 (0)