65
65
#include " llvm/CodeGen/TargetRegisterInfo.h"
66
66
#include " llvm/CodeGen/TargetSubtargetInfo.h"
67
67
#include " llvm/InitializePasses.h"
68
+ #include " llvm/MC/MCRegister.h"
68
69
#include " llvm/MC/MCRegisterInfo.h"
69
70
#include " llvm/Pass.h"
70
71
#include " llvm/Support/Debug.h"
@@ -112,7 +113,7 @@ class CopyTracker {
112
113
bool Avail;
113
114
};
114
115
115
- DenseMap<MCRegister , CopyInfo> Copies;
116
+ DenseMap<MCRegUnit , CopyInfo> Copies;
116
117
117
118
public:
118
119
// / Mark all of the given registers and their subregisters as unavailable for
@@ -251,7 +252,7 @@ class CopyTracker {
251
252
return !Copies.empty ();
252
253
}
253
254
254
- MachineInstr *findCopyForUnit (MCRegister RegUnit,
255
+ MachineInstr *findCopyForUnit (MCRegUnit RegUnit,
255
256
const TargetRegisterInfo &TRI,
256
257
bool MustBeAvailable = false ) {
257
258
auto CI = Copies.find (RegUnit);
@@ -262,7 +263,7 @@ class CopyTracker {
262
263
return CI->second .MI ;
263
264
}
264
265
265
- MachineInstr *findCopyDefViaUnit (MCRegister RegUnit,
266
+ MachineInstr *findCopyDefViaUnit (MCRegUnit RegUnit,
266
267
const TargetRegisterInfo &TRI) {
267
268
auto CI = Copies.find (RegUnit);
268
269
if (CI == Copies.end ())
0 commit comments