summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ExtractFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-14 22:08:00 +0000
committerChris Lattner <sabre@nondot.org>2004-03-14 22:08:00 +0000
commitbcec7875fbcf9d6c9380e9d7456a37a4c49e538f (patch)
tree8f7fc5ca1d0a755435489dfddec420a307259c7a /llvm/tools/bugpoint/ExtractFunction.cpp
parent0e6549b8c7a33ea4e3fa1be1ba2489782b154cdc (diff)
downloadbcm5719-llvm-bcec7875fbcf9d6c9380e9d7456a37a4c49e538f.tar.gz
bcm5719-llvm-bcec7875fbcf9d6c9380e9d7456a37a4c49e538f.zip
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
Diffstat (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp')
-rw-r--r--llvm/tools/bugpoint/ExtractFunction.cpp6
1 files changed, 5 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud