Skip to content

Commit 584a27e

Browse files
toppercgithub-actions[bot]
authored andcommitted
Automerge: [MachineTraceMetrics] Use Register::id(). NFC
2 parents 49d2276 + fc4bce3 commit 584a27e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/MachineTraceMetrics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ computeInstrHeights(const MachineBasicBlock *MBB) {
10711071
} else {
10721072
// For register units, the def latency is not included because we don't
10731073
// know the def yet.
1074-
RegUnits[LI.Reg].Cycle = LI.Height;
1074+
RegUnits[LI.Reg.id()].Cycle = LI.Height;
10751075
}
10761076
}
10771077
}

0 commit comments

Comments
 (0)