Skip to content

Commit 4a77d96

Browse files
committed
[LegacyPM] remove unset variables in PassManagerBuilder
D137915 stopped setting this variables but NewGVN was still used and caused asan failure Differential Revision: https://reviews.llvm.org/D138034
1 parent 98ed423 commit 4a77d96

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ class PassManagerBuilder {
157157
bool SLPVectorize;
158158
bool LoopVectorize;
159159
bool LoopsInterleaved;
160-
bool RerollLoops;
161-
bool NewGVN;
162160
bool DisableGVNLoadPRE;
163161
bool ForgetAllSCEVInLoopUnroll;
164162
bool VerifyInput;

llvm/lib/Transforms/IPO/PassManagerBuilder.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,7 @@ void PassManagerBuilder::addFunctionSimplificationPasses(
234234

235235
if (OptLevel > 1) {
236236
MPM.add(createMergedLoadStoreMotionPass()); // Merge ld/st in diamonds
237-
MPM.add(NewGVN ? createNewGVNPass()
238-
: createGVNPass(DisableGVNLoadPRE)); // Remove redundancies
237+
MPM.add(createGVNPass(DisableGVNLoadPRE)); // Remove redundancies
239238
}
240239
MPM.add(createSCCPPass()); // Constant prop with SCCP
241240

0 commit comments

Comments
 (0)