[llvm] [mlgo][inliner] Fix potential concurrency issue in local ThinLTO + IR2Vec cases (PR #156120)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 29 17:32:51 PDT 2025
================
@@ -475,7 +485,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>(getFeatureMap().size()) =
+ *ModelRunner->getTensor<int64_t>(getFeatureMap().size() - 1) =
----------------
mtrofin wrote:
Before, we were adding the extra feature to a local clone we'd send the model (see lines 84-85 on the left)
https://github.com/llvm/llvm-project/pull/156120
More information about the llvm-commits
mailing list