[Mlir-commits] [llvm] [mlir] [MLGO] Do not hardcode 33 eviction feature columns (PR #224598)

Arseniy Obolenskiy llvmlistbot at llvm.org
Sun Oct 4 21:14:11 PDT 2026


================
@@ -1008,7 +1018,7 @@ int64_t DevelopmentModeEvictAdvisor::tryFindEvictionCandidatePosition(
       Ret = CandidateVirtRegPos;
     else
       for (auto I = Order.begin(), E = Order.getOrderLimitEnd(OrderLimit);
-           I != E; ++I, ++Ret)
+           I != E && static_cast<size_t>(Ret) < CandidateVirtRegPos; ++I, ++Ret)
----------------
aobolensk wrote:

same as above

https://github.com/llvm/llvm-project/pull/224598


More information about the Mlir-commits mailing list