[llvm-commits] [llvm] r137085 - /llvm/trunk/test/Transforms/ObjCARC/cfg-hazards.ll
Dan Gohman
gohman at apple.com
Mon Aug 8 17:33:12 PDT 2011
Author: djg
Date: Mon Aug 8 19:33:11 2011
New Revision: 137085
URL: http://llvm.org/viewvc/llvm-project?rev=137085&view=rev
Log:
Tidy up these testcases to look more like real code does.
Modified:
llvm/trunk/test/Transforms/ObjCARC/cfg-hazards.ll
Modified: llvm/trunk/test/Transforms/ObjCARC/cfg-hazards.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/ObjCARC/cfg-hazards.ll?rev=137085&r1=137084&r2=137085&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/ObjCARC/cfg-hazards.ll (original)
+++ llvm/trunk/test/Transforms/ObjCARC/cfg-hazards.ll Mon Aug 8 19:33:11 2011
@@ -18,18 +18,18 @@
define void @test0(i8* %digits) {
entry:
%tmp1 = call i8* @objc_retain(i8* %digits) nounwind
- call void @use_pointer(i8* %tmp1)
+ call void @use_pointer(i8* %digits)
br label %for.body
for.body: ; preds = %for.body, %entry
%upcDigitIndex.01 = phi i64 [ 2, %entry ], [ %inc, %for.body ]
- call void @use_pointer(i8* %tmp1)
+ call void @use_pointer(i8* %digits)
%inc = add i64 %upcDigitIndex.01, 1
%cmp = icmp ult i64 %inc, 12
br i1 %cmp, label %for.body, label %for.end
for.end: ; preds = %for.body
- call void @objc_release(i8* %tmp1) nounwind, !clang.imprecise_release !0
+ call void @objc_release(i8* %digits) nounwind, !clang.imprecise_release !0
ret void
}
@@ -47,14 +47,14 @@
for.body: ; preds = %for.body, %entry
%upcDigitIndex.01 = phi i64 [ 2, %entry ], [ %inc, %for.body ]
- call void @use_pointer(i8* %tmp1)
- call void @use_pointer(i8* %tmp1)
+ call void @use_pointer(i8* %digits)
+ call void @use_pointer(i8* %digits)
%inc = add i64 %upcDigitIndex.01, 1
%cmp = icmp ult i64 %inc, 12
br i1 %cmp, label %for.body, label %for.end
for.end: ; preds = %for.body
- call void @objc_release(i8* %tmp1) nounwind, !clang.imprecise_release !0
+ call void @objc_release(i8* %digits) nounwind, !clang.imprecise_release !0
ret void
}
@@ -72,14 +72,14 @@
for.body: ; preds = %for.body, %entry
%upcDigitIndex.01 = phi i64 [ 2, %entry ], [ %inc, %for.body ]
- call void @use_pointer(i8* %tmp1)
+ call void @use_pointer(i8* %digits)
%inc = add i64 %upcDigitIndex.01, 1
%cmp = icmp ult i64 %inc, 12
br i1 %cmp, label %for.body, label %for.end
for.end: ; preds = %for.body
- call void @use_pointer(i8* %tmp1)
- call void @objc_release(i8* %tmp1) nounwind, !clang.imprecise_release !0
+ call void @use_pointer(i8* %digits)
+ call void @objc_release(i8* %digits) nounwind, !clang.imprecise_release !0
ret void
}
More information about the llvm-commits
mailing list