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).
19 lines
376 B
LLVM
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
|
|
}
|