@@ -208,17 +208,17 @@ namespace {
208
208
// / Keep track of information about hoisting candidates.
209
209
struct CandidateInfo {
210
210
MachineInstr *MI;
211
- unsigned Def;
211
+ Register Def;
212
212
int FI;
213
213
214
- CandidateInfo (MachineInstr *mi, unsigned def, int fi)
214
+ CandidateInfo (MachineInstr *mi, Register def, int fi)
215
215
: MI(mi), Def(def), FI(fi) {}
216
216
};
217
217
218
218
void HoistRegionPostRA (MachineLoop *CurLoop,
219
219
MachineBasicBlock *CurPreheader);
220
220
221
- void HoistPostRA (MachineInstr *MI, unsigned Def, MachineLoop *CurLoop,
221
+ void HoistPostRA (MachineInstr *MI, Register Def, MachineLoop *CurLoop,
222
222
MachineBasicBlock *CurPreheader);
223
223
224
224
void ProcessMI (MachineInstr *MI, BitVector &RUDefs, BitVector &RUClobbers,
@@ -518,7 +518,7 @@ void MachineLICMImpl::ProcessMI(MachineInstr *MI, BitVector &RUDefs,
518
518
MachineLoop *CurLoop) {
519
519
bool RuledOut = false ;
520
520
bool HasNonInvariantUse = false ;
521
- unsigned Def = 0 ;
521
+ Register Def;
522
522
for (const MachineOperand &MO : MI->operands ()) {
523
523
if (MO.isFI ()) {
524
524
// Remember if the instruction stores to the frame index.
@@ -672,7 +672,7 @@ void MachineLICMImpl::HoistRegionPostRA(MachineLoop *CurLoop,
672
672
StoredFIs.count (Candidate.FI ))
673
673
continue ;
674
674
675
- unsigned Def = Candidate.Def ;
675
+ Register Def = Candidate.Def ;
676
676
bool Safe = true ;
677
677
for (MCRegUnitIterator RUI (Def, TRI); RUI.isValid (); ++RUI) {
678
678
if (RUClobbers.test (*RUI) || TermRUs.test (*RUI)) {
@@ -725,7 +725,7 @@ void MachineLICMImpl::AddToLiveIns(MCRegister Reg, MachineLoop *CurLoop) {
725
725
726
726
// / When an instruction is found to only use loop invariant operands that is
727
727
// / safe to hoist, this instruction is called to do the dirty work.
728
- void MachineLICMImpl::HoistPostRA (MachineInstr *MI, unsigned Def,
728
+ void MachineLICMImpl::HoistPostRA (MachineInstr *MI, Register Def,
729
729
MachineLoop *CurLoop,
730
730
MachineBasicBlock *CurPreheader) {
731
731
MachineBasicBlock *Preheader = getCurPreheader (CurLoop, CurPreheader);
0 commit comments