mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Move isUnpredicatedTerminator() default implementation to TargetInstrInfoImpl to break Target's dependency on CodeGen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146247 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -139,6 +139,19 @@ bool TargetInstrInfoImpl::findCommutedOpIndices(MachineInstr *MI,
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
TargetInstrInfoImpl::isUnpredicatedTerminator(const MachineInstr *MI) const {
|
||||
if (!MI->isTerminator()) return false;
|
||||
|
||||
// Conditional branch is a special case.
|
||||
if (MI->isBranch() && !MI->isBarrier())
|
||||
return true;
|
||||
if (!MI->isPredicable())
|
||||
return true;
|
||||
return !isPredicated(MI);
|
||||
}
|
||||
|
||||
|
||||
bool TargetInstrInfoImpl::PredicateInstruction(MachineInstr *MI,
|
||||
const SmallVectorImpl<MachineOperand> &Pred) const {
|
||||
bool MadeChange = false;
|
||||
|
||||
Reference in New Issue
Block a user