summaryrefslogtreecommitdiff
path: root/polly/test/ScopInfo/pointer-comparison.ll
diff options
context:
space:
mode:
Diffstat (limited to 'polly/test/ScopInfo/pointer-comparison.ll')
-rw-r--r--polly/test/ScopInfo/pointer-comparison.ll12
1 files changed, 6 insertions, 6 deletions
diff --git a/polly/test/ScopInfo/pointer-comparison.ll b/polly/test/ScopInfo/pointer-comparison.ll
index 38c043b6ca4d..15ce0491209a 100644
--- a/polly/test/ScopInfo/pointer-comparison.ll
+++ b/polly/test/ScopInfo/pointer-comparison.ll
@@ -17,20 +17,20 @@
;
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-define void @f(i32* %A, i32* %B) {
+define void @f(ptr %A, ptr %B) {
entry:
br label %while.cond
while.cond: ; preds = %while.body, %entry
- %A.addr.0 = phi i32* [ %A, %entry ], [ %incdec.ptr, %while.body ]
- %cmp = icmp eq i32* %A.addr.0, %B
+ %A.addr.0 = phi ptr [ %A, %entry ], [ %incdec.ptr, %while.body ]
+ %cmp = icmp eq ptr %A.addr.0, %B
br i1 %cmp, label %while.end, label %while.body
while.body: ; preds = %while.cond
- %tmp = load i32, i32* %A.addr.0, align 4
+ %tmp = load i32, ptr %A.addr.0, align 4
%add = add nsw i32 %tmp, 1
- store i32 %add, i32* %A.addr.0, align 4
- %incdec.ptr = getelementptr inbounds i32, i32* %A.addr.0, i64 1
+ store i32 %add, ptr %A.addr.0, align 4
+ %incdec.ptr = getelementptr inbounds i32, ptr %A.addr.0, i64 1
br label %while.cond
while.end: ; preds = %while.cond