@@ -227,27 +227,17 @@ class EVMPassConfig final : public TargetPassConfig {
227
227
void EVMPassConfig::addIRPasses () {
228
228
addPass (createEVMLowerIntrinsicsPass ());
229
229
if (TM->getOptLevel () != CodeGenOptLevel::None) {
230
- // Call SeparateConstOffsetFromGEP pass to extract constants within
231
- // indices and lower a GEP with multiple indices to either arithmetic
232
- // operations or multiple GEPs with single index.
233
- addPass (createSeparateConstOffsetFromGEPPass (true ));
234
- // ReassociateGEPs exposes more opportunites for SLSR.
235
- addPass (createStraightLineStrengthReducePass ());
236
- // SeparateConstOffsetFromGEP and SLSR creates common expressions which
237
- // GVN or EarlyCSE can reuse.
238
- addPass (createGVNPass ());
239
- // Run NaryReassociate after EarlyCSE/GVN to be more effective.
240
- addPass (createNaryReassociatePass ());
241
230
// Call EarlyCSE pass to find and remove subexpressions in the lowered
242
231
// result.
243
232
addPass (createEarlyCSEPass (true ));
233
+ addPass (createGVNPass ());
244
234
// The DSE pass we run at the end of the optimization pipeline may open
245
235
// up new opportunities for further CFG simplification.
246
236
addPass (createCFGSimplificationPass (SimplifyCFGOptions ()
247
237
.convertSwitchRangeToICmp (true )
248
238
.hoistCommonInsts (true )
249
239
.sinkCommonInsts (true )));
250
- addPass (createLICMPass ());
240
+ // addPass(createLICMPass());
251
241
252
242
addPass (createEVMAAWrapperPass ());
253
243
addPass (createEVMExternalAAWrapperPass ());
0 commit comments