aboutsummaryrefslogtreecommitdiffstats
path: root/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
commita1cf1c8c87f10f12343ff6ae75f332390e7205ab (patch)
treeaf3f398106535f964b5b90b57fa2f767714ce2a8 /tools/bugpoint/ExtractFunction.cpp
parent44a64bccac869cf92885ccc957dbc92ad150ae7d (diff)
downloadexternal_llvm-a1cf1c8c87f10f12343ff6ae75f332390e7205ab.zip
external_llvm-a1cf1c8c87f10f12343ff6ae75f332390e7205ab.tar.gz
external_llvm-a1cf1c8c87f10f12343ff6ae75f332390e7205ab.tar.bz2
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... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12398 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/ExtractFunction.cpp')
-rw-r--r--tools/bugpoint/ExtractFunction.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp
index 53afd47..e8fe499 100644
--- a/tools/bugpoint/ExtractFunction.cpp
+++ b/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;
}