mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
If we're debugging the SimplifyCFG pass, we _REALLY_ don't want to use it for
narrowing, no matter what. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7596 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -304,11 +304,13 @@ bool BugDriver::debugCrash() {
|
||||
// to a return instruction then running simplifycfg, which can potentially
|
||||
// shrinks the code dramatically quickly
|
||||
//
|
||||
std::vector<BasicBlock*> Blocks;
|
||||
for (Module::iterator I = Program->begin(), E = Program->end(); I != E; ++I)
|
||||
for (Function::iterator FI = I->begin(), E = I->end(); FI != E; ++FI)
|
||||
Blocks.push_back(FI);
|
||||
ReduceCrashingBlocks(*this).reduceList(Blocks);
|
||||
if (!DisableSimplifyCFG) {
|
||||
std::vector<BasicBlock*> Blocks;
|
||||
for (Module::iterator I = Program->begin(), E = Program->end(); I != E; ++I)
|
||||
for (Function::iterator FI = I->begin(), E = I->end(); FI != E; ++FI)
|
||||
Blocks.push_back(FI);
|
||||
ReduceCrashingBlocks(*this).reduceList(Blocks);
|
||||
}
|
||||
|
||||
// FIXME: This should use the list reducer to converge faster by deleting
|
||||
// larger chunks of instructions at a time!
|
||||
|
||||
Reference in New Issue
Block a user