1; RUN: opt -S -O2 -inline-threshold=1 < %s | FileCheck %s 2 3%class.A = type { i32 } 4 5define void @_Z3barP1A(%class.A* %a) #0 { 6entry: 7 %a1 = getelementptr inbounds %class.A, %class.A* %a, i64 0, i32 0 8 %0 = load i32, i32* %a1, align 4 9 %add = add nsw i32 %0, 10 10 store i32 %add, i32* %a1, align 4 11 ret void 12} 13 14define void @_Z3foov() #0 { 15; CHECK-LABEL: @_Z3foov( 16; CHECK-NOT: call void @_Z3barP1A 17; CHECK: ret 18entry: 19 %a = alloca %class.A, align 4 20 call void @_Z3barP1A(%class.A* %a) 21 ret void 22} 23