Skip to content

Commit 8d9abb4

Browse files
committed
opt-alive.sh script: fix for LLVM sroa/tbaa unit tests
1 parent 245855c commit 8d9abb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/opt-alive.sh.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set -e
1010
# attributor, function-attrs: inter procedural pass that deduces and/or propagates attributes
1111
# metarenamer: anonymizes function names
1212
# sample-profile: inlines functions
13-
PASSES="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"
13+
PASSES="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"
1414
PASSREGISTRY="@LLVM_BUILD_MAIN_SRC_DIR@/lib/Passes/PassRegistry.def"
1515

1616
TV="-tv"
@@ -49,7 +49,7 @@ for arg in $@; do
4949
fi
5050
set -- "$@" "$arg"
5151
for p in $PASSES; do
52-
if [[ $arg == *"$p"* ]]; then
52+
if [[ $arg == *"$p"* || $arg == "-tbaa" ]]; then
5353
TV=""
5454
NPM_TV=0
5555
break

0 commit comments

Comments
 (0)