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