summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Doerfert <doerfert@cs.uni-saarland.de>2015-10-02 15:35:03 +0000
committerJohannes Doerfert <doerfert@cs.uni-saarland.de>2015-10-02 15:35:03 +0000
commit3e7d1718666c4020c21a9b05ab9825a151a13511 (patch)
tree9d84bcc5bccd01e1bb172e9c4958b50674ebbe2b
parent9c95ac2946f641c189df823702e8f9abb6827e81 (diff)
downloadbcm5719-llvm-3e7d1718666c4020c21a9b05ab9825a151a13511.tar.gz
bcm5719-llvm-3e7d1718666c4020c21a9b05ab9825a151a13511.zip
[FIX] Repair broken commit
The last invariant load fix was based on a later patch not polly/master, thus needs to be adjusted. llvm-svn: 249145
-rw-r--r--polly/test/Isl/CodeGen/non-affine-phi-node-expansion.ll7
-rw-r--r--polly/test/ScopInfo/NonAffine/invariant_loads_dependent_in_non_affine_region.ll57
2 files changed, 4 insertions, 60 deletions
diff --git a/polly/test/Isl/CodeGen/non-affine-phi-node-expansion.ll b/polly/test/Isl/CodeGen/non-affine-phi-node-expansion.ll
index b78f29e1294..a9fef6d680f 100644
--- a/polly/test/Isl/CodeGen/non-affine-phi-node-expansion.ll
+++ b/polly/test/Isl/CodeGen/non-affine-phi-node-expansion.ll
@@ -5,9 +5,11 @@ target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
%struct.wombat = type {[4 x i32]}
; CHECK-NOT: polly.preload.begin:
-; CHECK-NOT:: %polly.access.B
+; CHECK-NOT: %polly.access.B
; CHECK-NOT: %polly.access.B.load
+; CHECK: polly.split_new_and_old
+
; CHECK: polly.stmt.bb3.entry: ; preds = %polly.start
; CHECK: br label %polly.stmt.bb3
@@ -18,8 +20,7 @@ target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
; CHECK: br label %polly.stmt.bb13.exit
; CHECK: polly.stmt.bb5: ; preds = %polly.stmt.bb3
-; CHECK: store i32 %polly.access.B.load, i32* %polly.access.cast.arg2
-; CHECK: br label %polly.stmt.bb13.exit
+; CHECK: load i32, i32* %B
; Function Attrs: nounwind uwtable
define void @quux(%struct.wombat* %arg, i32* %B) {
diff --git a/polly/test/ScopInfo/NonAffine/invariant_loads_dependent_in_non_affine_region.ll b/polly/test/ScopInfo/NonAffine/invariant_loads_dependent_in_non_affine_region.ll
deleted file mode 100644
index d23f2fd619e..00000000000
--- a/polly/test/ScopInfo/NonAffine/invariant_loads_dependent_in_non_affine_region.ll
+++ /dev/null
@@ -1,57 +0,0 @@
-; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s
-;
-; void f(int *A, int *B, int *C) {
-; for (int i = 0; i < 1000; i++)
-; if (A[i] == *B)
-; A[i] = *C;
-; }
-;
-; Check that only the access to *B is hoisted but not the one to *C.
-;
-; CHECK: Invariant Accesses: {
-; CHECK: ReadAccess := [Reduction Type: NONE] [Scalar: 0]
-; CHECK: { Stmt_for_body__TO__if_end[i0] -> MemRef_B[0] };
-; CHECK: Execution Context: { : }
-; CHECK: }
-;
-; CHECK: Statements {
-; CHECK: Stmt_for_body__TO__if_end
-; CHECK: ReadAccess := [Reduction Type: NONE] [Scalar: 0]
-; CHECK: { Stmt_for_body__TO__if_end[i0] -> MemRef_C[0] };
-; CHECK: }
-
-;
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-
-define void @f(i32* %A, i32* %B, i32* %C) {
-entry:
- br label %for.cond
-
-for.cond: ; preds = %for.inc, %entry
- %indvars.iv = phi i64 [ %indvars.iv.next, %for.inc ], [ 0, %entry ]
- %exitcond = icmp ne i64 %indvars.iv, 1000
- br i1 %exitcond, label %for.body, label %for.end
-
-for.body: ; preds = %for.cond
- %arrayidx = getelementptr inbounds i32, i32* %A, i64 %indvars.iv
- %tmp = load i32, i32* %arrayidx, align 4
- %tmp1 = load i32, i32* %B, align 4
- %cmp1 = icmp eq i32 %tmp, %tmp1
- br i1 %cmp1, label %if.then, label %if.end
-
-if.then: ; preds = %for.body
- %tmp2 = load i32, i32* %C, align 4
- %arrayidx3 = getelementptr inbounds i32, i32* %A, i64 %indvars.iv
- store i32 %tmp2, i32* %arrayidx3, align 4
- br label %if.end
-
-if.end: ; preds = %if.then, %for.body
- br label %for.inc
-
-for.inc: ; preds = %if.end
- %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
- br label %for.cond
-
-for.end: ; preds = %for.cond
- ret void
-}
OpenPOWER on IntegriCloud