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