mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
implement uncond branch insertion for sparc to fix regressions from last night
due to branchfolding llvm-svn: 31157
This commit is contained in:
parent
efee605648
commit
f899cf0dc5
@ -96,3 +96,11 @@ unsigned SparcInstrInfo::isStoreToStackSlot(MachineInstr *MI,
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SparcInstrInfo::InsertBranch(MachineBasicBlock &MBB,MachineBasicBlock *TBB,
|
||||||
|
MachineBasicBlock *FBB,
|
||||||
|
const std::vector<MachineOperand> &Cond)const{
|
||||||
|
// Can only insert uncond branches so far.
|
||||||
|
assert(Cond.empty() && !FBB && TBB && "Can only handle uncond branches!");
|
||||||
|
BuildMI(&MBB, SP::BA, 1).addMBB(TBB);
|
||||||
|
}
|
@ -61,6 +61,11 @@ public:
|
|||||||
/// not, return 0. This predicate must return 0 if the instruction has
|
/// not, return 0. This predicate must return 0 if the instruction has
|
||||||
/// any side effects other than storing to the stack slot.
|
/// any side effects other than storing to the stack slot.
|
||||||
virtual unsigned isStoreToStackSlot(MachineInstr *MI, int &FrameIndex) const;
|
virtual unsigned isStoreToStackSlot(MachineInstr *MI, int &FrameIndex) const;
|
||||||
|
|
||||||
|
|
||||||
|
virtual void InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
|
||||||
|
MachineBasicBlock *FBB,
|
||||||
|
const std::vector<MachineOperand> &Cond) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user