projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b52818e
)
Stop early if there is no mis-optimization.
author
Reid Spencer
<rspencer@reidspencer.com>
Wed, 22 Nov 2006 03:46:45 +0000
(
03:46
+0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Wed, 22 Nov 2006 03:46:45 +0000
(
03:46
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31893
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/findmisopt
patch
|
blob
|
history
diff --git
a/utils/findmisopt
b/utils/findmisopt
index 955c0c003058a02bc4b5a8a6a7a4cf7fdaa58e94..3828c70b12348c0235ce1cfe5b9f756f3c3a5e05 100755
(executable)
--- a/
utils/findmisopt
+++ b/
utils/findmisopt
@@
-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/'`