mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-10 02:25:47 +00:00
Use MachineBasicBlock::isLiveIn.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101144 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -656,15 +656,8 @@ static bool UpdateCPSRUse(MachineInstr &MI, bool LiveCPSR) {
|
|||||||
bool Thumb2SizeReduce::ReduceMBB(MachineBasicBlock &MBB) {
|
bool Thumb2SizeReduce::ReduceMBB(MachineBasicBlock &MBB) {
|
||||||
bool Modified = false;
|
bool Modified = false;
|
||||||
|
|
||||||
bool LiveCPSR = false;
|
|
||||||
// Yes, CPSR could be livein.
|
// Yes, CPSR could be livein.
|
||||||
for (MachineBasicBlock::const_livein_iterator I = MBB.livein_begin(),
|
bool LiveCPSR = MBB.isLiveIn(ARM::CPSR);
|
||||||
E = MBB.livein_end(); I != E; ++I) {
|
|
||||||
if (*I == ARM::CPSR) {
|
|
||||||
LiveCPSR = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
MachineBasicBlock::iterator MII = MBB.begin(), E = MBB.end();
|
MachineBasicBlock::iterator MII = MBB.begin(), E = MBB.end();
|
||||||
MachineBasicBlock::iterator NextMII;
|
MachineBasicBlock::iterator NextMII;
|
||||||
|
Reference in New Issue
Block a user