Skip to content

Commit 5a19d7c

Browse files
committed
[EVM] Use only GVN
1 parent 438c23e commit 5a19d7c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/EVM/EVMTargetMachine.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ void EVMPassConfig::addIRPasses() {
235235
addPass(createStraightLineStrengthReducePass());
236236
// SeparateConstOffsetFromGEP and SLSR creates common expressions which
237237
// GVN or EarlyCSE can reuse.
238-
addPass(createNewGVNPass());
239-
addPass(createGVNHoistPass());
238+
addPass(createGVNPass());
240239
// Run NaryReassociate after EarlyCSE/GVN to be more effective.
241240
addPass(createNaryReassociatePass());
242241
// Call EarlyCSE pass to find and remove subexpressions in the lowered

0 commit comments

Comments
 (0)