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

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


================
@@ -744,13 +755,12 @@ MCRegister MLEvictAdvisor::tryFindEvictionCandidate(
   size_t Available = 0;
   // Make sure we don't have leftover partial state from an attempt where we
   // had no available candidates and bailed out early.
-  resetInputs(*Runner);
+  resetInputs(*Runner, InputFeatures);
 
   // Track the index->register mapping because AllocationOrder doesn't do that
   // and we'd have to scan it.
   // Also track their mask, to write asserts/debug.
-  CandidateRegList Regs;
-  Regs.fill({0, false});
----------------
aobolensk wrote:

SmallVector has no fill(), and this way is simpler anyways 

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


More information about the Mlir-commits mailing list