diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-23 20:36:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-23 20:36:51 +0000 |
commit | 02cea4afd32fd63d1fae8f33916164f7cdd8f869 (patch) | |
tree | c3abf6241531bb54c7362d12a6434eb2a5848c6b /llvm/tools/bugpoint/Miscompilation.cpp | |
parent | 99e3e940121ddf021932998ef6b4827b7b29017f (diff) | |
download | bcm5719-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.cpp | 6 |
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: "; |