mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Do not check isPredicated() on non-predicable instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37891 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5db322acef
commit
0e4a276c72
@ -87,7 +87,10 @@ bool TargetInstrInfo::PredicateInstruction(MachineInstr *MI,
|
|||||||
|
|
||||||
bool TargetInstrInfo::isUnpredicatedTerminator(const MachineInstr *MI) const {
|
bool TargetInstrInfo::isUnpredicatedTerminator(const MachineInstr *MI) const {
|
||||||
const TargetInstrDescriptor *TID = MI->getInstrDescriptor();
|
const TargetInstrDescriptor *TID = MI->getInstrDescriptor();
|
||||||
if (TID->Flags & M_TERMINATOR_FLAG)
|
if (TID->Flags & M_TERMINATOR_FLAG) {
|
||||||
|
if ((TID->Flags & M_PREDICABLE) == 0)
|
||||||
|
return true;
|
||||||
return !isPredicated(MI);
|
return !isPredicated(MI);
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user