Stop early if there is no mis-optimization.

llvm-svn: 31893
This commit is contained in:
Reid Spencer 2006-11-22 03:46:45 +00:00
parent 4666c085f3
commit fff57ce9cd
1 changed files with 9 additions and 0 deletions

View File

@ -132,6 +132,15 @@ for sw in $all_switches ; do
fi
done
# Terminate the previous output with a newline
echo ""
# Determine if we're done because none of the optimizations broke the program
if [ "$switches" == " $all_switches" ] ; then
echo "The program did not miscompile"
exit 0
fi
final=""
while [ ! -z "$switches" ] ; do
trimmed=`echo "$switches" | sed -e 's/^ *\(-[^ ]*\).*/\1/'`