Skip to content

Commit ea705c5

Browse files
houjenkoigcbot
authored andcommitted
[Autobackout][FuncReg]Revert of change: d69545e
add CFGSimplification and JumpThreading passes back for correctness We hit an nonconformance issue when disabling global opt in staged compilation. CFGSimplification and JumpThreading are the culprit passes and cannot be disabled
1 parent f5cbbaa commit ea705c5

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,17 +1597,6 @@ void OptimizeIR(CodeGenContext* const pContext)
15971597
{
15981598
mpm.add(llvm::createGVNPass());
15991599
}
1600-
1601-
mpm.add(llvm::createCFGSimplificationPass());
1602-
1603-
// Conditions apply just as above due to problems with atomics
1604-
// (see comment above for details).
1605-
if (!pContext->m_instrTypes.hasAtomics && !extensiveShader(pContext))
1606-
{
1607-
// After lowering 'switch', run jump threading to remove redundant jumps.
1608-
mpm.add(llvm::createJumpThreadingPass());
1609-
}
1610-
16111600
}
16121601
if (IGC_IS_FLAG_DISABLED(DisableImmConstantOpt))
16131602
{

0 commit comments

Comments
 (0)