[llvm] [mlgo][inliner] Tigher test for interactive mode (PR #141677)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Tue May 27 15:03:23 PDT 2025
https://github.com/mtrofin created https://github.com/llvm/llvm-project/pull/141677
Prompted by #141453 - have the test check the feature that was previously clobbered in interactive mode, if the default decision was requested.
>From 155b96050ba5ba725fff8531b6f377f36b914f08 Mon Sep 17 00:00:00 2001
From: Mircea Trofin <mtrofin at google.com>
Date: Tue, 27 May 2025 14:59:05 -0700
Subject: [PATCH] [mlgo][inliner] Tigher test for interactive mode
Prompted by #141453 - have the test check the feature that was previously clobbered in interactive mode, if the default decision was requested.
---
llvm/test/Transforms/Inline/ML/interactive-mode.ll | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/llvm/test/Transforms/Inline/ML/interactive-mode.ll b/llvm/test/Transforms/Inline/ML/interactive-mode.ll
index 0866d14c6ece7..28f87049b21db 100644
--- a/llvm/test/Transforms/Inline/ML/interactive-mode.ll
+++ b/llvm/test/Transforms/Inline/ML/interactive-mode.ll
@@ -22,10 +22,19 @@
; CHECK-NEXT: sroa_savings: 0
; CHECK: unsimplified_common_instructions: 5
; CHECK: callee_users: 3
+; CHECK-DEFAULT: inlining_default: 1
+; CHECK: observation: 1
+; CHECK: callee_basic_block_count: 5
+; CHECK-DEFAULT: inlining_default: 0
+; CHECK: observation: 2
+; CHECK-DEFAULT: inlining_default: 1
+; CHECK: observation: 3
+; CHECK: callee_basic_block_count: 1
; CHECK-DEFAULT: inlining_default: 0
+; CHECK: observation: 4
; CHECK-DEFAULT: inlining_default: 1
; CHECK: observation: 5
-; CHECK-NOT: observation: 6
+; CHECK-DEFAULT: inlining_default: 1
; CHECK: inlining_decision: 1
; CHECK-NEXT: inlining_decision: 0
More information about the llvm-commits
mailing list