Changes in directory llvm/utils:

findmisopt updated: 1.7 -> 1.8
---
Log message:

Stop early if there is no mis-optimization.


---
Diffs of the changes:  (+9 -0)

 findmisopt |    9 +++++++++
 1 files changed, 9 insertions(+)


Index: llvm/utils/findmisopt
diff -u llvm/utils/findmisopt:1.7 llvm/utils/findmisopt:1.8
--- llvm/utils/findmisopt:1.7   Sat Nov 18 11:14:09 2006
+++ llvm/utils/findmisopt       Tue Nov 21 21:46:45 2006
@@ -132,6 +132,15 @@
   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/'`



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to