mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
Stop early if there is no mis-optimization.
llvm-svn: 31893
This commit is contained in:
parent
c4b66614ef
commit
336bf8354e
@ -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/'`
|
||||
|
Loading…
Reference in New Issue
Block a user