[all-commits] [llvm/llvm-project] 18fced: [LLVM][MLGO] Fix: Index correctly into features to...

Jellytabby via All-commits all-commits at lists.llvm.org
Sun May 25 22:57:25 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18fced40d5c68afdd2bf64552015ad257fe679ef
      https://github.com/llvm/llvm-project/commit/18fced40d5c68afdd2bf64552015ad257fe679ef
  Author: Jellytabby <109531007+jellytabby at users.noreply.github.com>
  Date:   2025-05-26 (Mon, 26 May 2025)

  Changed paths:
    M llvm/lib/Analysis/MLInlineAdvisor.cpp
    M llvm/test/Transforms/Inline/ML/interactive-mode.ll

  Log Message:
  -----------
  [LLVM][MLGO] Fix: Index correctly into features to get default inlining decision (#141453)

Currently, `InlineCostFeatureIndex::NumberOfFeatures` results in an
index in the middle of the feature vector, therefore not correctly
setting the default inlining decision and overwriting another feature.
`FeatureIndex::NumberOfFeatures` is the last index of the feature
vector, where the default inlining decision gets appended to when
enabled.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list