summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit02cea4afd32fd63d1fae8f33916164f7cdd8f869 (patch)
treec3abf6241531bb54c7362d12a6434eb2a5848c6b /llvm/tools/bugpoint/Miscompilation.cpp
parent99e3e940121ddf021932998ef6b4827b7b29017f (diff)
downloadbcm5719-llvm-02cea4afd32fd63d1fae8f33916164f7cdd8f869.tar.gz
bcm5719-llvm-02cea4afd32fd63d1fae8f33916164f7cdd8f869.zip
Teach bugpoint to be a little bit smarter and avoid repeating work
llvm-svn: 13132
Diffstat (limited to 'llvm/tools/bugpoint/Miscompilation.cpp')
-rw-r--r--llvm/tools/bugpoint/Miscompilation.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp
index cda0098f887..3e532226b95 100644
--- a/llvm/tools/bugpoint/Miscompilation.cpp
+++ b/llvm/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: ";
OpenPOWER on IntegriCloud