mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-25 03:30:37 +00:00
Stop early if there is no mis-optimization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31893 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b52818e778
commit
6d0fbd4185
@ -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…
x
Reference in New Issue
Block a user