[llvm] [mlgo][inliner] Fix incorrect state tracking when deferring to the default policy (PR #163477)

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 15 02:17:41 PDT 2025


================
@@ -214,6 +217,8 @@ MLInlineAdvisor::MLInlineAdvisor(
     return;
   }
   ModelRunner->switchContext("");
+  if (StopImmediatelyForTest.getNumOccurrences() > 0)
----------------
zmodem wrote:

The `.getNumOccurrences() > 0` part seems redundant. I think just `if (StopImmediatelyForTest)` should work.

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


More information about the llvm-commits mailing list