File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1313PASSES=" argpromotion deadargelim globalopt hotcoldsplit inline ipconstprop ipsccp mergefunc partial-inliner function-specialization =tbaa loop-extract extract-blocks safe-stack place-safepoints attributor function-attrs metarenamer sample-profile lowertypetests extract-blocks openmp-opt-cgscc prune-eh tailcallelim iroutliner globals-aa -O0 -Os -Oz -O1 -O2 -O3"
1414PASSREGISTRY=" @LLVM_BUILD_MAIN_SRC_DIR@/lib/Passes/PassRegistry.def"
1515
16+ # see opt.cpp: shouldForceLegacyPM()
17+ FORCE_OLD_NPM=" safe-stack codegenprepare interleaved-load-combine unreachableblockelim atomic-expand hardware-loops interleaved-access global-merge expand-reductions indirectbr-expand pre-isel-intrinsic-lowering loop-reduce expandmemcmp"
18+
1619TV=" -tv"
1720SKIP_TV=0
1821for arg in $@ ; do
@@ -44,7 +47,7 @@ for arg in $@; do
4447 set -- " $@ " " $arg "
4548 fi
4649 else
47- if [[ $arg == " -enable-new-pm=0" ]]; then
50+ if [[ $arg == " -enable-new-pm=0" || $arg == " -enable-new-pm=false " ]]; then
4851 NPM_TV=0
4952 fi
5053 set -- " $@ " " $arg "
@@ -55,6 +58,12 @@ for arg in $@; do
5558 break
5659 fi
5760 done
61+ for p in $FORCE_OLD_NPM ; do
62+ if [[ $arg == " -$p " ]]; then
63+ NPM_TV=0
64+ break
65+ fi
66+ done
5867 fi
5968done
6069
You can’t perform that action at this time.
0 commit comments