1 ; RUN: opt -S -Oz %s | FileCheck %s
6 %a1 = load volatile i32, i32* @a
8 ; Here are enough instructions to prevent inlining, but because they are used
9 ; only by the @llvm.assume intrinsic, they're free (and, thus, inlining will
11 %a2 = mul i32 %a1, %a1
13 %a4 = udiv i32 %a3, -13
14 %a5 = mul i32 %a4, %a4
15 %a6 = add i32 %a5, %a5
16 %ca = icmp sgt i32 %a6, -7
17 tail call void @llvm.assume(i1 %ca)
22 ; @inner() should be inlined for -Oz.
23 ; CHECK-NOT: call i1 @inner
24 define i32 @outer() optsize {
25 %r = call i32 @inner()
29 declare void @llvm.assume(i1) nounwind