You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
402 B
19 lines
402 B
; Make sure we don't detect devirtualization on inlining a function with a direct call
|
|
; RUN: opt -abort-on-max-devirt-iterations-reached -passes='cgscc(devirt<0>(inline))' -S < %s | FileCheck %s
|
|
|
|
define i32 @i() noinline {
|
|
ret i32 45
|
|
}
|
|
|
|
; CHECK-NOT: call i32 @call()
|
|
|
|
define i32 @main() {
|
|
%r = call i32 @call()
|
|
ret i32 %r
|
|
}
|
|
|
|
define i32 @call() alwaysinline {
|
|
%r = call i32 @i()
|
|
ret i32 %r
|
|
}
|