Skip to content

[mlgo][inliner] Tigher test for interactive mode #141677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025
Merged

Conversation

mtrofin
Copy link
Member

@mtrofin mtrofin commented May 27, 2025

Prompted by #141453 - have the test check the feature that was previously clobbered in interactive mode, if the default decision was requested.

Prompted by llvm#141453 - have the test check the feature that was previously clobbered in interactive mode, if the default decision was requested.
@llvmbot
Copy link
Member

llvmbot commented May 27, 2025

@llvm/pr-subscribers-llvm-transforms

Author: Mircea Trofin (mtrofin)

Changes

Prompted by #141453 - have the test check the feature that was previously clobbered in interactive mode, if the default decision was requested.


Full diff: https://github.com/llvm/llvm-project/pull/141677.diff

1 Files Affected:

  • (modified) llvm/test/Transforms/Inline/ML/interactive-mode.ll (+10-1)
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

@mtrofin
Copy link
Member Author

mtrofin commented May 27, 2025

fyi @jellytabby since can't (yet) be added to reviewer list.

@mtrofin mtrofin merged commit ead27e6 into llvm:main May 27, 2025
11 of 12 checks passed
@mtrofin mtrofin deleted the moretest branch May 27, 2025 23:49
sivan-shani pushed a commit to sivan-shani/llvm-project that referenced this pull request Jun 3, 2025
Prompted by llvm#141453 - have the test check the feature that was
previously clobbered in interactive mode, if the default decision was
requested.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants