summaryrefslogtreecommitdiff
path: root/polly/test/ScopInliner/simple-inline-loop.ll
diff options
context:
space:
mode:
Diffstat (limited to 'polly/test/ScopInliner/simple-inline-loop.ll')
-rw-r--r--polly/test/ScopInliner/simple-inline-loop.ll12
1 files changed, 6 insertions, 6 deletions
diff --git a/polly/test/ScopInliner/simple-inline-loop.ll b/polly/test/ScopInliner/simple-inline-loop.ll
index 2a6dc4af1d32..a5e3483edad0 100644
--- a/polly/test/ScopInliner/simple-inline-loop.ll
+++ b/polly/test/ScopInliner/simple-inline-loop.ll
@@ -21,7 +21,7 @@ target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.12.0"
-define void @to_be_inlined(i32* %A) {
+define void @to_be_inlined(ptr %A) {
entry:
br label %entry.split
@@ -30,10 +30,10 @@ entry.split: ; preds = %entry
for.body: ; preds = %entry.split, %for.body
%indvars.iv1 = phi i64 [ 0, %entry.split ], [ %indvars.iv.next, %for.body ]
- %arrayidx = getelementptr inbounds i32, i32* %A, i64 %indvars.iv1
- %tmp = load i32, i32* %arrayidx, align 4
+ %arrayidx = getelementptr inbounds i32, ptr %A, i64 %indvars.iv1
+ %tmp = load i32, ptr %arrayidx, align 4
%mul = mul nsw i32 %tmp, 10
- store i32 %mul, i32* %arrayidx, align 4
+ store i32 %mul, ptr %arrayidx, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv1, 1
%exitcond = icmp eq i64 %indvars.iv.next, 1000
br i1 %exitcond, label %for.end, label %for.body
@@ -42,7 +42,7 @@ for.end: ; preds = %for.body
ret void
}
-define void @inline_site(i32* %A) {
+define void @inline_site(ptr %A) {
entry:
br label %entry.split
@@ -51,7 +51,7 @@ entry.split: ; preds = %entry
for.body: ; preds = %entry.split, %for.body
%i.01 = phi i32 [ 0, %entry.split ], [ %inc, %for.body ]
- tail call void @to_be_inlined(i32* %A)
+ tail call void @to_be_inlined(ptr %A)
%inc = add nuw nsw i32 %i.01, 1
%exitcond = icmp eq i32 %inc, 1000
br i1 %exitcond, label %for.end, label %for.body