summaryrefslogtreecommitdiff
path: root/polly/test/CodeGen/aliasing_struct_element.ll
diff options
context:
space:
mode:
Diffstat (limited to 'polly/test/CodeGen/aliasing_struct_element.ll')
-rw-r--r--polly/test/CodeGen/aliasing_struct_element.ll13
1 files changed, 6 insertions, 7 deletions
diff --git a/polly/test/CodeGen/aliasing_struct_element.ll b/polly/test/CodeGen/aliasing_struct_element.ll
index ceec5ee8796d..2219ca9d28bb 100644
--- a/polly/test/CodeGen/aliasing_struct_element.ll
+++ b/polly/test/CodeGen/aliasing_struct_element.ll
@@ -10,8 +10,7 @@
; Verify that we do not use the offset 1423 into a non existent S array when we
; compute runtime alias checks but treat it as if it was a char array.
;
-; CHECK: %polly.access.cast.S = bitcast %struct.st* %S to i8*
-; CHECK: %polly.access.S = getelementptr i8, i8* %polly.access.cast.S, i64 1424
+; CHECK: %polly.access.S = getelementptr i8, ptr %S, i64 1424
;
; struct st {
; int Dummy[100];
@@ -27,7 +26,7 @@ target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
%struct.st = type { [100 x i32], [100 x i8] }
-define void @jd(i32* %A, %struct.st* %S) {
+define void @jd(ptr %A, ptr %S) {
entry:
br label %for.cond
@@ -37,11 +36,11 @@ for.cond: ; preds = %for.inc, %entry
br i1 %exitcond, label %for.body, label %for.end
for.body: ; preds = %for.cond
- %arrayidx = getelementptr inbounds %struct.st, %struct.st* %S, i64 0, i32 1, i64 %indvars.iv
- %tmp = load i8, i8* %arrayidx, align 1
+ %arrayidx = getelementptr inbounds %struct.st, ptr %S, i64 0, i32 1, i64 %indvars.iv
+ %tmp = load i8, ptr %arrayidx, align 1
%conv = sext i8 %tmp to i32
- %arrayidx2 = getelementptr inbounds i32, i32* %A, i64 %indvars.iv
- store i32 %conv, i32* %arrayidx2, align 4
+ %arrayidx2 = getelementptr inbounds i32, ptr %A, i64 %indvars.iv
+ store i32 %conv, ptr %arrayidx2, align 4
br label %for.inc
for.inc: ; preds = %for.body