summaryrefslogtreecommitdiff
path: root/tools/bugpoint/Miscompilation.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-23 20:36:51 +0000
committerChris Lattner <sabre@nondot.org>2004-04-23 20:36:51 +0000
commitf4789e6d04c1fddb40092a1193c4a5eb67387acc (patch)
tree5f23ce6101c161f6db74d1444d63a81ff5e78819 /tools/bugpoint/Miscompilation.cpp
parenta7e405c95da37e0743a6d299bb777727a0186ae2 (diff)
downloadllvm-f4789e6d04c1fddb40092a1193c4a5eb67387acc.tar.gz
llvm-f4789e6d04c1fddb40092a1193c4a5eb67387acc.tar.bz2
llvm-f4789e6d04c1fddb40092a1193c4a5eb67387acc.tar.xz
Teach bugpoint to be a little bit smarter and avoid repeating work
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13132 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/Miscompilation.cpp')
-rw-r--r--tools/bugpoint/Miscompilation.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp
index cda0098f88..3e532226b9 100644
--- a/tools/bugpoint/Miscompilation.cpp
+++ b/tools/bugpoint/Miscompilation.cpp
@@ -108,7 +108,11 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix,
exit(1);
}
removeFile(BytecodeResult); // No longer need the file on disk
-
+
+ // Don't check if there are no passes in the suffix.
+ if (Suffix.empty())
+ return NoFailure;
+
std::cout << "Checking to see if '" << getPassesString(Suffix)
<< "' passes compile correctly after the '"
<< getPassesString(Prefix) << "' passes: ";