[llvm] Reland "MTM: fix issues after cursory reading" (PR #101191)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 08:54:45 PDT 2024
================
@@ -133,7 +127,7 @@ MachineTraceMetrics::getResources(const MachineBasicBlock *MBB) {
// Scale the resource cycles so they are comparable.
unsigned PROffset = MBB->getNumber() * PRKinds;
- for (unsigned K = 0; K != PRKinds; ++K)
+ for (unsigned K = 0; K < PRKinds; ++K)
----------------
s-barannikov wrote:
The coding standard doesn't specify which style of control condition is preferred, so there is no reason to change this line.
https://github.com/llvm/llvm-project/pull/101191
More information about the llvm-commits
mailing list