Skip to content

Commit c7bb67d

Browse files
admitricigcbot
authored andcommitted
Add CSE pass after LICM in CodeGen
1 parent fbcbcd4 commit c7bb67d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,7 @@ void AddLegalizationPasses(CodeGenContext& ctx, IGCPassManager& mpm, PSSignature
811811
{
812812
mpm.add(new RegPressureLoopControl());
813813
}
814+
mpm.add(llvm::createEarlyCSEPass());
814815
}
815816
mpm.add(createAggressiveDCEPass());
816817
// As DPC++ FE apply LICM we cannot reduce register pressure just

0 commit comments

Comments
 (0)