File tree Expand file tree Collapse file tree 5 files changed +1
-27
lines changed Expand file tree Collapse file tree 5 files changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -1316,7 +1316,7 @@ class TargetInstrInfo : public MCInstrInfo {
1316
1316
1317
1317
// / Returns true if the instruction is a
1318
1318
// / terminator instruction that has not been predicated.
1319
- virtual bool isUnpredicatedTerminator (const MachineInstr &MI) const ;
1319
+ bool isUnpredicatedTerminator (const MachineInstr &MI) const ;
1320
1320
1321
1321
// / Returns true if MI is an unconditional tail call.
1322
1322
virtual bool isUnconditionalTailCall (const MachineInstr &MI) const {
Original file line number Diff line number Diff line change @@ -160,18 +160,6 @@ reverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond) const {
160
160
return false ;
161
161
}
162
162
163
- bool MSP430InstrInfo::isUnpredicatedTerminator (const MachineInstr &MI) const {
164
- if (!MI.isTerminator ())
165
- return false ;
166
-
167
- // Conditional branch is a special case.
168
- if (MI.isBranch () && !MI.isBarrier ())
169
- return true ;
170
- if (!MI.isPredicable ())
171
- return true ;
172
- return !isPredicated (MI);
173
- }
174
-
175
163
bool MSP430InstrInfo::analyzeBranch (MachineBasicBlock &MBB,
176
164
MachineBasicBlock *&TBB,
177
165
MachineBasicBlock *&FBB,
Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ class MSP430InstrInfo : public MSP430GenInstrInfo {
56
56
// Branch folding goodness
57
57
bool
58
58
reverseBranchCondition (SmallVectorImpl<MachineOperand> &Cond) const override ;
59
- bool isUnpredicatedTerminator (const MachineInstr &MI) const override ;
60
59
bool analyzeBranch (MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
61
60
MachineBasicBlock *&FBB,
62
61
SmallVectorImpl<MachineOperand> &Cond,
Original file line number Diff line number Diff line change @@ -1452,17 +1452,6 @@ bool PPCInstrInfo::isPredicated(const MachineInstr &MI) const {
1452
1452
return false ;
1453
1453
}
1454
1454
1455
- bool PPCInstrInfo::isUnpredicatedTerminator (const MachineInstr &MI) const {
1456
- if (!MI.isTerminator ())
1457
- return false ;
1458
-
1459
- // Conditional branch is a special case.
1460
- if (MI.isBranch () && !MI.isBarrier ())
1461
- return true ;
1462
-
1463
- return !isPredicated (MI);
1464
- }
1465
-
1466
1455
bool PPCInstrInfo::PredicateInstruction (MachineInstr &MI,
1467
1456
ArrayRef<MachineOperand> Pred) const {
1468
1457
unsigned OpC = MI.getOpcode ();
Original file line number Diff line number Diff line change @@ -364,8 +364,6 @@ class PPCInstrInfo : public PPCGenInstrInfo {
364
364
// Predication support.
365
365
bool isPredicated (const MachineInstr &MI) const override ;
366
366
367
- bool isUnpredicatedTerminator (const MachineInstr &MI) const override ;
368
-
369
367
bool PredicateInstruction (MachineInstr &MI,
370
368
ArrayRef<MachineOperand> Pred) const override ;
371
369
You can’t perform that action at this time.
0 commit comments