Skip to content

Commit 2bf6fe0

Browse files
committed
[EVM] Tmp fix
1 parent b3332ed commit 2bf6fe0

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

llvm/lib/Target/EVM/EVMTargetMachine.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -227,27 +227,17 @@ class EVMPassConfig final : public TargetPassConfig {
227227
void EVMPassConfig::addIRPasses() {
228228
addPass(createEVMLowerIntrinsicsPass());
229229
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());
241230
// Call EarlyCSE pass to find and remove subexpressions in the lowered
242231
// result.
243232
addPass(createEarlyCSEPass(true));
233+
addPass(createGVNPass());
244234
// The DSE pass we run at the end of the optimization pipeline may open
245235
// up new opportunities for further CFG simplification.
246236
addPass(createCFGSimplificationPass(SimplifyCFGOptions()
247237
.convertSwitchRangeToICmp(true)
248238
.hoistCommonInsts(true)
249239
.sinkCommonInsts(true)));
250-
addPass(createLICMPass());
240+
// addPass(createLICMPass());
251241

252242
addPass(createEVMAAWrapperPass());
253243
addPass(createEVMExternalAAWrapperPass());

0 commit comments

Comments
 (0)