diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-11-09 01:47:04 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-11-09 01:47:04 +0000 |
commit | dd2b95534f866ec6f31df101624a715612c97ffa (patch) | |
tree | a44328c11ef3b88299d7453192b2921d453f6b5b /utils/findmisopt | |
parent | e4d8f33b0f1dfe0e6b2741c6936b26f21031ac90 (diff) | |
download | external_llvm-dd2b95534f866ec6f31df101624a715612c97ffa.zip external_llvm-dd2b95534f866ec6f31df101624a715612c97ffa.tar.gz external_llvm-dd2b95534f866ec6f31df101624a715612c97ffa.tar.bz2 |
Don't run bugpoint if we can't find a misoptimization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/findmisopt')
-rwxr-xr-x | utils/findmisopt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/findmisopt b/utils/findmisopt index a6033ca..dc56484 100755 --- a/utils/findmisopt +++ b/utils/findmisopt @@ -122,9 +122,13 @@ while [ ! -z "$switches" ] ; do echo "Next Loop" done -echo "Smallest Optimization list= $final" +if [ "$final" == " $all_switches" ] ; then + echo "findmisopt: Can't find a set of optimizations that make it fail" + exit 0 +fi +echo "Smallest Optimization list=$final" bpcmd="bugpoint -run-llc --output "$out" --input /dev/null $bcfile $final --args $args" echo "Running: $bpcmd" $bpcmd -echo "Finished." +echo "findmisopt finished." |