[llvm-commits] CVS: llvm/utils/findmisopt

Reid Spencer reid at x10sys.com
Tue Nov 21 19:47:00 PST 2006



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/'`






More information about the llvm-commits mailing list