@@ -181,7 +181,7 @@ class TwoAddressInstructionImpl {
181
181
void processCopy (MachineInstr *MI);
182
182
183
183
using TiedPairList = SmallVector<std::pair<unsigned , unsigned >, 4 >;
184
- using TiedOperandMap = SmallDenseMap<unsigned , TiedPairList>;
184
+ using TiedOperandMap = SmallDenseMap<Register , TiedPairList>;
185
185
186
186
bool collectTiedOperands (MachineInstr *MI, TiedOperandMap&);
187
187
void processTiedPairs (MachineInstr *MI, TiedPairList&, unsigned &Dist);
@@ -624,7 +624,7 @@ void TwoAddressInstructionImpl::removeClobberedSrcRegMap(MachineInstr *MI) {
624
624
// Returns true if Reg is equal or aliased to at least one register in Set.
625
625
bool TwoAddressInstructionImpl::regOverlapsSet (
626
626
const SmallVectorImpl<Register> &Set, Register Reg) const {
627
- for (unsigned R : Set)
627
+ for (Register R : Set)
628
628
if (TRI->regsOverlap (R, Reg))
629
629
return true ;
630
630
@@ -854,10 +854,10 @@ void TwoAddressInstructionImpl::scanUses(Register DstReg) {
854
854
}
855
855
856
856
if (!VirtRegPairs.empty ()) {
857
- unsigned ToReg = VirtRegPairs.back ();
857
+ Register ToReg = VirtRegPairs.back ();
858
858
VirtRegPairs.pop_back ();
859
859
while (!VirtRegPairs.empty ()) {
860
- unsigned FromReg = VirtRegPairs.pop_back_val ();
860
+ Register FromReg = VirtRegPairs.pop_back_val ();
861
861
bool isNew = DstRegMap.insert (std::make_pair (FromReg, ToReg)).second ;
862
862
if (!isNew)
863
863
assert (DstRegMap[FromReg] == ToReg &&" Can't map to two dst registers!" );
@@ -1562,7 +1562,7 @@ void TwoAddressInstructionImpl::processTiedPairs(MachineInstr *MI,
1562
1562
1563
1563
bool RemovedKillFlag = false ;
1564
1564
bool AllUsesCopied = true ;
1565
- unsigned LastCopiedReg = 0 ;
1565
+ Register LastCopiedReg;
1566
1566
SlotIndex LastCopyIdx;
1567
1567
Register RegB = 0 ;
1568
1568
unsigned SubRegB = 0 ;
0 commit comments