mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 16:37:42 +00:00
Make PPCInstrInfo::isPredicated always return false
Because of how predication in implemented on PPC (only for branches), I think that this is the right thing to do. No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179252 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aa3a85e2fa
commit
4b04029481
@ -900,22 +900,14 @@ bool PPCInstrInfo::isProfitableToIfCvt(MachineBasicBlock &TMBB,
|
||||
|
||||
|
||||
bool PPCInstrInfo::isPredicated(const MachineInstr *MI) const {
|
||||
unsigned OpC = MI->getOpcode();
|
||||
switch (OpC) {
|
||||
default:
|
||||
return false;
|
||||
case PPC::BCC:
|
||||
case PPC::BCCTR:
|
||||
case PPC::BCCTR8:
|
||||
case PPC::BCCTRL:
|
||||
case PPC::BCCTRL8:
|
||||
case PPC::BCLR:
|
||||
case PPC::BDZLR:
|
||||
case PPC::BDZLR8:
|
||||
case PPC::BDNZLR:
|
||||
case PPC::BDNZLR8:
|
||||
return true;
|
||||
}
|
||||
// The predicated branches are identified by their type, not really by the
|
||||
// explicit presence of a predicate. Furthermore, some of them can be
|
||||
// predicated more than once. Because if conversion won't try to predicate
|
||||
// any instruction which already claims to be predicated (by returning true
|
||||
// here), always return false. In doing so, we let isPredicable() be the
|
||||
// final word on whether not the instruction can be (further) predicated.
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PPCInstrInfo::isUnpredicatedTerminator(const MachineInstr *MI) const {
|
||||
|
Loading…
Reference in New Issue
Block a user