mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user