[llvm] Reland "[MLGO][IR2Vec] Integrating IR2Vec with MLInliner (#143479)" (PR #145664)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 30 12:27:55 PDT 2025


================
@@ -441,8 +473,7 @@ std::unique_ptr<InlineAdvice> MLInlineAdvisor::getAdviceImpl(CallBase &CB) {
   }
   // This one would have been set up to be right at the end.
   if (!InteractiveChannelBaseName.empty() && InteractiveIncludeDefault)
-    *ModelRunner->getTensor<int64_t>(FeatureIndex::NumberOfFeatures) =
-        GetDefaultAdvice(CB);
+    *ModelRunner->getTensor<int64_t>(FeatureMap.size()) = GetDefaultAdvice(CB);
----------------
mtrofin wrote:

may be best to add an explicit feature then? (different patch)

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


More information about the llvm-commits mailing list