Skip to content

Commit ca4457a

Browse files
iwwuigcbot
authored andcommitted
Add the earlyCSE pass
Add the earlyCSE pass back into the pass pipeline as improvements outweigh regressions.
1 parent d411279 commit ca4457a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,8 @@ void OptimizeIR(CodeGenContext* const pContext)
18531853
mpm.add( createWaveAllJointReduction() );
18541854
}
18551855

1856+
mpm.add(llvm::createEarlyCSEPass());
1857+
18561858
if (IGC_IS_FLAG_ENABLED(EnableIntDivRemCombine)) {
18571859
// simplify rem if the quotient is availble
18581860
//

0 commit comments

Comments
 (0)