1 ; RUN: opt -objc-arc-contract -S < %s | FileCheck -check-prefix=ENABLE %s
2 ; RUN: opt -objc-arc-contract -arc-contract-max-bb-size=3 -S < %s | FileCheck -check-prefix=DISABLE %s
4 @g0 = common global i8* null, align 8
6 ; ENABLE: store i8* %2, i8** @g0
7 ; DISABLE: store i8* %1, i8** @g0
10 %1 = tail call i8* @foo1()
11 %2 = tail call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* %1)
12 store i8* %1, i8** @g0, align 8
17 declare i8* @llvm.objc.retainAutoreleasedReturnValue(i8*)