From 7902d8fd027e4a20781ae7c5c8989740461fe5bf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 23 Apr 2004 20:36:51 +0000 Subject: [PATCH] Teach bugpoint to be a little bit smarter and avoid repeating work llvm-svn: 13132 --- tools/bugpoint/Miscompilation.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index cda0098f887..3e532226b95 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/tools/bugpoint/Miscompilation.cpp @@ -108,7 +108,11 @@ ReduceMiscompilingPasses::doTest(std::vector &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: ";