Don't analyze block if it's not considered for ifcvt anymore.
[llvm/stm8.git] / test / Transforms / ObjCARC / expand.ll
blob5388673f2b9de6ad7251b7f5fa82e231b30ce857
1 ; RUN: opt -objc-arc-expand -S < %s | FileCheck %s
3 target datalayout = "e-p:64:64:64"
5 declare i8* @objc_retain(i8*)
6 declare i8* @objc_autorelease(i8*)
8 declare void @use_pointer(i8*)
10 ; CHECK: define void @test0
11 ; CHECK: call void @use_pointer(i8* %x)
12 ; CHECK: }
13 define void @test0(i8* %x) nounwind {
14 entry:
15   %0 = call i8* @objc_retain(i8* %x) nounwind
16   call void @use_pointer(i8* %0)
17   ret void
20 ; CHECK: define void @test1
21 ; CHECK: call void @use_pointer(i8* %x)
22 ; CHECK: }
23 define void @test1(i8* %x) nounwind {
24 entry:
25   %0 = call i8* @objc_autorelease(i8* %x) nounwind
26   call void @use_pointer(i8* %x)
27   ret void