File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1329,7 +1329,10 @@ void OptimizeIR(CodeGenContext* pContext)
1329
1329
// Use CFGSimplification to do clean-up. Needs to be invoked before lowerSwitch.
1330
1330
mpm.add (llvm::createCFGSimplificationPass ());
1331
1331
1332
- if (IGC_IS_FLAG_DISABLED (DisableFlattenSmallSwitch))
1332
+ // run instruction combining to clean up the code after CFG optimizations
1333
+ mpm.add (createIGCInstructionCombiningPass ());
1334
+
1335
+ if (IGC_IS_FLAG_DISABLED (DisableFlattenSmallSwitch))
1333
1336
{
1334
1337
mpm.add (createFlattenSmallSwitchPass ());
1335
1338
}
@@ -1338,9 +1341,6 @@ void OptimizeIR(CodeGenContext* pContext)
1338
1341
// After lowering 'switch', run jump threading to remove redundant jumps.
1339
1342
mpm.add (llvm::createJumpThreadingPass ());
1340
1343
1341
- // run instruction combining to clean up the code after CFG optimizations
1342
- mpm.add (createIGCInstructionCombiningPass ());
1343
-
1344
1344
mpm.add (llvm::createDeadCodeEliminationPass ());
1345
1345
mpm.add (llvm::createEarlyCSEPass ());
1346
1346
You can’t perform that action at this time.
0 commit comments