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

19 lines
376 B
LLVM

; RUN: opt < %s -passes=inline -S | FileCheck %s
; RUN: opt < %s -passes='module-inline' -S | FileCheck %s
define i32 @testByte(i8 %X) {
entry:
%tmp = icmp ne i8 %X, 0
%tmp.i = zext i1 %tmp to i32
ret i32 %tmp.i
}
define i32 @main() {
; CHECK-LABEL: define i32 @main()
entry:
%rslt = call i32 @testByte(i8 123)
; CHECK-NOT: call
ret i32 %rslt
; CHECK: ret i32 1
}