[llvm] [MLGO] Add EvolutionInlineAdvisor (PR #166386)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 4 07:57:08 PST 2025
================
@@ -0,0 +1,20 @@
+; RUN: opt -passes='default<O3>' \
+; RUN: -S -enable-ml-inliner=evolution < %s 2>&1 | FileCheck %s
+
+declare i32 @f1()
+
+define i32 @f2() {
+ ret i32 1
+}
+
+define i32 @f3() {
+ %a = call i32 @f1()
+ %b = call i32 @f2()
+ %c = add i32 %a, %b
+ ret i32 %c
+}
+
+; all the functions are not inlined by default
+; CHECK-LABEL: @f1
+; CHECK-LABEL: @f2
+; CHECK-LABEL: @f3
----------------
mtrofin wrote:
missing empty line at the end (git likes that)
https://github.com/llvm/llvm-project/pull/166386
More information about the llvm-commits
mailing list