diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-14 22:08:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-14 22:08:00 +0000 |
commit | a1cf1c8c87f10f12343ff6ae75f332390e7205ab (patch) | |
tree | af3f398106535f964b5b90b57fa2f767714ce2a8 /tools/bugpoint/ExtractFunction.cpp | |
parent | 44a64bccac869cf92885ccc957dbc92ad150ae7d (diff) |
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.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp index 53afd474fd..e8fe499ffd 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; } |