mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
Sink landing-pad marking code out of
SelectionDAGISel::runOnMachineFunction into FunctionLowering. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101252 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d0d8275cb2
commit
de4c0a7da7
@ -232,6 +232,11 @@ void FunctionLoweringInfo::set(Function &fn, MachineFunction &mf,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Mark landing pad blocks.
|
||||
for (BB = Fn->begin(); BB != EB; ++BB)
|
||||
if (InvokeInst *Invoke = dyn_cast<InvokeInst>(BB->getTerminator()))
|
||||
MBBMap[Invoke->getSuccessor(1)]->setIsLandingPad();
|
||||
}
|
||||
|
||||
/// clear - Clear out all the function-specific state. This returns this
|
||||
|
@ -332,11 +332,6 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
|
||||
FuncInfo->set(Fn, *MF, EnableFastISel);
|
||||
SDB->init(GFI, *AA);
|
||||
|
||||
for (Function::iterator I = Fn.begin(), E = Fn.end(); I != E; ++I)
|
||||
if (InvokeInst *Invoke = dyn_cast<InvokeInst>(I->getTerminator()))
|
||||
// Mark landing pad.
|
||||
FuncInfo->MBBMap[Invoke->getSuccessor(1)]->setIsLandingPad();
|
||||
|
||||
SelectAllBasicBlocks(Fn, *MF, TII);
|
||||
|
||||
// If the first basic block in the function has live ins that need to be
|
||||
|
Loading…
Reference in New Issue
Block a user