llvm.org GIT mirror llvm / 6d0fbd4
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 Reid Spencer 14 years ago
1 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
131131 fi
132132 done
133133
134 # Terminate the previous output with a newline
135 echo ""
136
137 # Determine if we're done because none of the optimizations broke the program
138 if [ "$switches" == " $all_switches" ] ; then
139 echo "The program did not miscompile"
140 exit 0
141 fi
142
134143 final=""
135144 while [ ! -z "$switches" ] ; do
136145 trimmed=`echo "$switches" | sed -e 's/^ *\(-[^ ]*\).*/\1/'`