llvm-project/llvm/test/Transforms/Inline/SystemZ/inline-target-attr.ll
Aiden Grossman f513f44bc6
[Inline] Remove redundant run lines in tests (#179959)
625038d5d5f406385f44983ac2a442b20ad7b241 added NewPM CGSCC coverage to
all of the inliner tests. Now that the NewPM is the default for the
middle end, both check lines cover the same thing (with -passes="inline"
expanding to -passes="cgscc(inline)"). Given that, remove them to get
rid of the redundancy and make the tests run slightly faster (not
measured).
2026-02-05 07:54:37 -08:00

42 lines
1004 B
LLVM

; RUN: opt < %s -mtriple=s390x-linux-gnu -S -passes=inline | FileCheck %s
; Check that we only inline when we have equal target attributes.
define i32 @foo() #0 {
entry:
%call = call i32 (...) @baz()
ret i32 %call
; CHECK-LABEL: foo
; CHECK: call i32 (...) @baz()
}
declare i32 @baz(...) #0
define i32 @features_subset() #1 {
entry:
%call = call i32 @foo()
ret i32 %call
; CHECK-LABEL: features_subset
; CHECK: call i32 (...) @baz()
}
define i32 @features_equal() #0 {
entry:
%call = call i32 @foo()
ret i32 %call
; CHECK-LABEL: features_equal
; CHECK: call i32 (...) @baz()
}
define i32 @features_different() #2 {
entry:
%call = call i32 @foo()
ret i32 %call
; CHECK-LABEL: features_different
; CHECK: call i32 @foo()
}
attributes #0 = { "target-cpu"="generic" "target-features"="+guarded-storage" }
attributes #1 = { "target-cpu"="generic" "target-features"="+guarded-storage,+enhanced-sort" }
attributes #2 = { "target-cpu"="generic" "target-features"="+concurrent-functions" }