From bcec7875fbcf9d6c9380e9d7456a37a4c49e538f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 14 Mar 2004 22:08:00 +0000 Subject: After reducing a miscompiled program down to the functions which are being miscompiled, try to use the loop extractor to reduce the program down to a loop nest that is being miscompiled. In practice, the loop extractor appears to have too many bugs for this to be useful, but hopefully they will be fixed soon... llvm-svn: 12398 --- llvm/tools/bugpoint/ExtractFunction.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp') diff --git a/llvm/tools/bugpoint/ExtractFunction.cpp b/llvm/tools/bugpoint/ExtractFunction.cpp index 53afd474fdd..e8fe499ffdd 100644 --- a/llvm/tools/bugpoint/ExtractFunction.cpp +++ b/llvm/tools/bugpoint/ExtractFunction.cpp @@ -131,7 +131,11 @@ Module *BugDriver::ExtractLoop(Module *M) { Module *NewM = runPassesOn(M, LoopExtractPasses); if (NewM == 0) { - std::cerr << "Loop extraction failed. Sorry. :( Please report a bug!\n"; + Module *Old = swapProgramIn(M); + std::cout << "*** Loop extraction failed: "; + EmitProgressBytecode("loopextraction", true); + std::cout << "*** Sorry. :( Please report a bug!\n"; + swapProgramIn(Old); return 0; } -- cgit v1.2.3