@@ -67,7 +67,7 @@ void CriticalAntiDepBreaker::StartBlock(MachineBasicBlock *BB) {
67
67
for (const MachineBasicBlock *Succ : BB->successors ())
68
68
for (const auto &LI : Succ->liveins ()) {
69
69
for (MCRegAliasIterator AI (LI.PhysReg , TRI, true ); AI.isValid (); ++AI) {
70
- unsigned Reg = *AI;
70
+ unsigned Reg = ( *AI). id () ;
71
71
Classes[Reg] = reinterpret_cast <TargetRegisterClass *>(-1 );
72
72
KillIndices[Reg] = BBSize;
73
73
DefIndices[Reg] = ~0u ;
@@ -85,7 +85,7 @@ void CriticalAntiDepBreaker::StartBlock(MachineBasicBlock *BB) {
85
85
if (!IsReturnBlock && !Pristine.test (Reg))
86
86
continue ;
87
87
for (MCRegAliasIterator AI (*I, TRI, true ); AI.isValid (); ++AI) {
88
- unsigned Reg = *AI;
88
+ unsigned Reg = ( *AI). id () ;
89
89
Classes[Reg] = reinterpret_cast <TargetRegisterClass *>(-1 );
90
90
KillIndices[Reg] = BBSize;
91
91
DefIndices[Reg] = ~0u ;
@@ -200,7 +200,7 @@ void CriticalAntiDepBreaker::PrescanInstruction(MachineInstr &MI) {
200
200
// If an alias of the reg is used during the live range, give up.
201
201
// Note that this allows us to skip checking if AntiDepReg
202
202
// overlaps with any of the aliases, among other things.
203
- unsigned AliasReg = *AI;
203
+ unsigned AliasReg = ( *AI). id () ;
204
204
if (Classes[AliasReg]) {
205
205
Classes[AliasReg] = reinterpret_cast <TargetRegisterClass *>(-1 );
206
206
Classes[Reg] = reinterpret_cast <TargetRegisterClass *>(-1 );
@@ -327,7 +327,7 @@ void CriticalAntiDepBreaker::ScanInstruction(MachineInstr &MI, unsigned Count) {
327
327
// It wasn't previously live but now it is, this is a kill.
328
328
// Repeat for all aliases.
329
329
for (MCRegAliasIterator AI (Reg, TRI, true ); AI.isValid (); ++AI) {
330
- unsigned AliasReg = *AI;
330
+ unsigned AliasReg = ( *AI). id () ;
331
331
if (KillIndices[AliasReg] == ~0u ) {
332
332
KillIndices[AliasReg] = Count;
333
333
DefIndices[AliasReg] = ~0u ;
0 commit comments