summaryrefslogtreecommitdiff
path: root/polly/test/GPGPU/partial_writes.ll
diff options
context:
space:
mode:
Diffstat (limited to 'polly/test/GPGPU/partial_writes.ll')
-rw-r--r--polly/test/GPGPU/partial_writes.ll11
1 files changed, 5 insertions, 6 deletions
diff --git a/polly/test/GPGPU/partial_writes.ll b/polly/test/GPGPU/partial_writes.ll
index 3630409afba9..c3df624df7ac 100644
--- a/polly/test/GPGPU/partial_writes.ll
+++ b/polly/test/GPGPU/partial_writes.ll
@@ -11,20 +11,19 @@ target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define void @partial_writes() {
bb:
- %tmp = tail call i8* @wibble() #2
- %tmp1 = bitcast i8* %tmp to [1200 x double]*
+ %tmp = tail call ptr @wibble() #2
br label %bb2
bb2: ; preds = %bb11, %bb
%tmp3 = phi i64 [ 0, %bb ], [ %tmp12, %bb11 ]
- %tmp4 = getelementptr inbounds [1200 x double], [1200 x double]* %tmp1, i64 0, i64 %tmp3
- %tmp5 = load double, double* %tmp4, align 8, !tbaa !1
+ %tmp4 = getelementptr inbounds [1200 x double], ptr %tmp, i64 0, i64 %tmp3
+ %tmp5 = load double, ptr %tmp4, align 8, !tbaa !1
br label %bb6
bb6: ; preds = %bb6, %bb2
%tmp7 = phi double [ undef, %bb2 ], [ undef, %bb6 ]
%tmp8 = phi i64 [ 0, %bb2 ], [ %tmp9, %bb6 ]
- store double undef, double* %tmp4, align 8, !tbaa !1
+ store double undef, ptr %tmp4, align 8, !tbaa !1
%tmp9 = add nuw nsw i64 %tmp8, 1
%tmp10 = icmp eq i64 %tmp9, 900
br i1 %tmp10, label %bb11, label %bb6
@@ -38,7 +37,7 @@ bb14: ; preds = %bb11
ret void
}
-declare i8* @wibble()
+declare ptr @wibble()
!llvm.ident = !{!0}