Skip to content

Commit

Permalink
Move SplitIndirectEEtoSel after MemOpt
Browse files Browse the repository at this point in the history
Move SplitIndirectEEtoSel after MemOpt
  • Loading branch information
lioujheyu authored and igcbot committed Jan 28, 2025
1 parent cde90e2 commit 9e9d696
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -653,13 +653,6 @@ void AddLegalizationPasses(CodeGenContext& ctx, IGCPassManager& mpm, PSSignature
mpm.add(createPromoteMemoryToRegisterPass());
}

// There's no particular reason for this exact place, but it should be after LowerGEPForPrivMem
if (IGC_IS_FLAG_ENABLED(EnableSplitIndirectEEtoSel))
{
mpm.add(createSplitIndirectEEtoSelPass());
}


if (ctx.type == ShaderType::OPENCL_SHADER ||
ctx.type == ShaderType::COMPUTE_SHADER)
{
Expand Down Expand Up @@ -780,6 +773,8 @@ void AddLegalizationPasses(CodeGenContext& ctx, IGCPassManager& mpm, PSSignature
mpm.add(createIGCInstructionCombiningPass());
}



if (ctx.hasSyncRTCalls())
{
mpm.add(createRaytracingStatefulPass());
Expand Down

0 comments on commit 9e9d696

Please sign in to comment.