@@ -269,10 +269,9 @@ namespace {
269
269
bool IfConvertForkedDiamond (BBInfo &BBI, IfcvtKind Kind,
270
270
unsigned NumDups1, unsigned NumDups2,
271
271
bool TClobbers, bool FClobbers);
272
- void PredicateBlock (BBInfo &BBI,
273
- MachineBasicBlock::iterator E,
272
+ void PredicateBlock (BBInfo &BBI, MachineBasicBlock::iterator E,
274
273
SmallVectorImpl<MachineOperand> &Cond,
275
- SmallSet<MCPhysReg , 4 > *LaterRedefs = nullptr );
274
+ SmallSet<MCRegister , 4 > *LaterRedefs = nullptr );
276
275
void CopyAndPredicateBlock (BBInfo &ToBBI, BBInfo &FromBBI,
277
276
SmallVectorImpl<MachineOperand> &Cond,
278
277
bool IgnoreBr = false );
@@ -1926,13 +1925,13 @@ bool IfConverter::IfConvertDiamondCommon(
1926
1925
// generate:
1927
1926
// sub r0, r1, #1
1928
1927
// addne r0, r1, #1
1929
- SmallSet<MCPhysReg , 4 > RedefsByFalse;
1930
- SmallSet<MCPhysReg , 4 > ExtUses;
1928
+ SmallSet<MCRegister , 4 > RedefsByFalse;
1929
+ SmallSet<MCRegister , 4 > ExtUses;
1931
1930
if (TII->isProfitableToUnpredicate (MBB1, MBB2)) {
1932
1931
for (const MachineInstr &FI : make_range (MBB2.begin (), DI2)) {
1933
1932
if (FI.isDebugInstr ())
1934
1933
continue ;
1935
- SmallVector<MCPhysReg , 4 > Defs;
1934
+ SmallVector<MCRegister , 4 > Defs;
1936
1935
for (const MachineOperand &MO : FI.operands ()) {
1937
1936
if (!MO.isReg ())
1938
1937
continue ;
@@ -1949,7 +1948,7 @@ bool IfConverter::IfConvertDiamondCommon(
1949
1948
}
1950
1949
}
1951
1950
1952
- for (MCPhysReg Reg : Defs) {
1951
+ for (MCRegister Reg : Defs) {
1953
1952
if (!ExtUses.count (Reg)) {
1954
1953
for (MCPhysReg SubReg : TRI->subregs_inclusive (Reg))
1955
1954
RedefsByFalse.insert (SubReg);
@@ -2094,7 +2093,7 @@ bool IfConverter::IfConvertDiamond(BBInfo &BBI, IfcvtKind Kind,
2094
2093
}
2095
2094
2096
2095
static bool MaySpeculate (const MachineInstr &MI,
2097
- SmallSet<MCPhysReg , 4 > &LaterRedefs) {
2096
+ SmallSet<MCRegister , 4 > &LaterRedefs) {
2098
2097
bool SawStore = true ;
2099
2098
if (!MI.isSafeToMove (SawStore))
2100
2099
return false ;
@@ -2114,10 +2113,9 @@ static bool MaySpeculate(const MachineInstr &MI,
2114
2113
2115
2114
// / Predicate instructions from the start of the block to the specified end with
2116
2115
// / the specified condition.
2117
- void IfConverter::PredicateBlock (BBInfo &BBI,
2118
- MachineBasicBlock::iterator E,
2116
+ void IfConverter::PredicateBlock (BBInfo &BBI, MachineBasicBlock::iterator E,
2119
2117
SmallVectorImpl<MachineOperand> &Cond,
2120
- SmallSet<MCPhysReg , 4 > *LaterRedefs) {
2118
+ SmallSet<MCRegister , 4 > *LaterRedefs) {
2121
2119
bool AnyUnpred = false ;
2122
2120
bool MaySpec = LaterRedefs != nullptr ;
2123
2121
for (MachineInstr &I : make_range (BBI.BB ->begin (), E)) {
0 commit comments