Skip to content

Commit d6a14e5

Browse files
lioujheyuigcbot
authored andcommitted
Put SplitIndirectEEtoSel back to the working order after MemOpt
Put SplitIndirectEEtoSel back to the working order after MemOpt
1 parent 56b3435 commit d6a14e5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -603,12 +603,6 @@ void AddLegalizationPasses(CodeGenContext &ctx, IGCPassManager &mpm, PSSignature
603603
mpm.add(createPromoteMemoryToRegisterPass());
604604
}
605605

606-
// There's no particular reason for this exact place, but it should be after LowerGEPForPrivMem
607-
if (IGC_IS_FLAG_ENABLED(EnableSplitIndirectEEtoSel)) {
608-
mpm.add(createSplitIndirectEEtoSelPass());
609-
}
610-
611-
612606
if (ctx.type == ShaderType::OPENCL_SHADER || ctx.type == ShaderType::COMPUTE_SHADER) {
613607
if (IGC_IS_FLAG_ENABLED(ForceAllPrivateMemoryToSLM)) {
614608
mpm.add(new PrivateMemoryToSLM(IGC_IS_FLAG_ENABLED(EnableOptReportPrivateMemoryToSLM)));
@@ -699,6 +693,8 @@ void AddLegalizationPasses(CodeGenContext &ctx, IGCPassManager &mpm, PSSignature
699693
mpm.add(createIGCInstructionCombiningPass());
700694
}
701695

696+
697+
702698
if (ctx.hasSyncRTCalls()) {
703699
mpm.add(createRaytracingStatefulPass());
704700
}

0 commit comments

Comments
 (0)