@@ -67,7 +67,7 @@ void CriticalAntiDepBreaker::StartBlock(MachineBasicBlock *BB) {
6767 for (const MachineBasicBlock *Succ : BB->successors ())
6868 for (const auto &LI : Succ->liveins ()) {
6969 for (MCRegAliasIterator AI (LI.PhysReg , TRI, true ); AI.isValid (); ++AI) {
70- unsigned Reg = *AI;
70+ unsigned Reg = ( *AI). id () ;
7171 Classes[Reg] = reinterpret_cast <TargetRegisterClass *>(-1 );
7272 KillIndices[Reg] = BBSize;
7373 DefIndices[Reg] = ~0u ;
@@ -85,7 +85,7 @@ void CriticalAntiDepBreaker::StartBlock(MachineBasicBlock *BB) {
8585 if (!IsReturnBlock && !Pristine.test (Reg))
8686 continue ;
8787 for (MCRegAliasIterator AI (*I, TRI, true ); AI.isValid (); ++AI) {
88- unsigned Reg = *AI;
88+ unsigned Reg = ( *AI). id () ;
8989 Classes[Reg] = reinterpret_cast <TargetRegisterClass *>(-1 );
9090 KillIndices[Reg] = BBSize;
9191 DefIndices[Reg] = ~0u ;
@@ -200,7 +200,7 @@ void CriticalAntiDepBreaker::PrescanInstruction(MachineInstr &MI) {
200200 // If an alias of the reg is used during the live range, give up.
201201 // Note that this allows us to skip checking if AntiDepReg
202202 // overlaps with any of the aliases, among other things.
203- unsigned AliasReg = *AI;
203+ unsigned AliasReg = ( *AI). id () ;
204204 if (Classes[AliasReg]) {
205205 Classes[AliasReg] = reinterpret_cast <TargetRegisterClass *>(-1 );
206206 Classes[Reg] = reinterpret_cast <TargetRegisterClass *>(-1 );
@@ -327,7 +327,7 @@ void CriticalAntiDepBreaker::ScanInstruction(MachineInstr &MI, unsigned Count) {
327327 // It wasn't previously live but now it is, this is a kill.
328328 // Repeat for all aliases.
329329 for (MCRegAliasIterator AI (Reg, TRI, true ); AI.isValid (); ++AI) {
330- unsigned AliasReg = *AI;
330+ unsigned AliasReg = ( *AI). id () ;
331331 if (KillIndices[AliasReg] == ~0u ) {
332332 KillIndices[AliasReg] = Count;
333333 DefIndices[AliasReg] = ~0u ;
0 commit comments