Skip to content

Commit 65c7871

Browse files
lioujheyuigcbot
authored andcommitted
Revert "Move SplitIndirectEEtoSel after MemOpt"
Revert "Move SplitIndirectEEtoSel after MemOpt"
1 parent 3a51b5f commit 65c7871

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,12 @@ 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+
606612
if (ctx.type == ShaderType::OPENCL_SHADER || ctx.type == ShaderType::COMPUTE_SHADER) {
607613
if (IGC_IS_FLAG_ENABLED(ForceAllPrivateMemoryToSLM)) {
608614
mpm.add(new PrivateMemoryToSLM(IGC_IS_FLAG_ENABLED(EnableOptReportPrivateMemoryToSLM)));
@@ -693,8 +699,6 @@ void AddLegalizationPasses(CodeGenContext &ctx, IGCPassManager &mpm, PSSignature
693699
mpm.add(createIGCInstructionCombiningPass());
694700
}
695701

696-
697-
698702
if (ctx.hasSyncRTCalls()) {
699703
mpm.add(createRaytracingStatefulPass());
700704
}

0 commit comments

Comments
 (0)