summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polly/test/ScopDetect/expand-region-correctly-2.ll (renamed from polly/test/ScopInfo/new-domain-construction-schedule-not-freed.ll)8
-rw-r--r--polly/test/ScopDetect/expand-region-correctly.ll45
2 files changed, 48 insertions, 5 deletions
diff --git a/polly/test/ScopInfo/new-domain-construction-schedule-not-freed.ll b/polly/test/ScopDetect/expand-region-correctly-2.ll
index 348d4d22b79..2ae08bdd337 100644
--- a/polly/test/ScopInfo/new-domain-construction-schedule-not-freed.ll
+++ b/polly/test/ScopDetect/expand-region-correctly-2.ll
@@ -1,9 +1,7 @@
-; RUN: opt %loadPolly -analyze -polly-scops %s | FileCheck %s
+; RUN: opt %loadPolly -polly-detect \
+; RUN: -analyze < %s | FileCheck %s
;
-; At some point this caused a problem in the schedule generation and we
-; keep the test to avoid regressions there.
-;
-; CHECK: Statements
+; CHECK: Valid Region for Scop: if.end.1631 => for.cond.1647.outer
;
target triple = "x86_64-unknown-linux-gnu"
diff --git a/polly/test/ScopDetect/expand-region-correctly.ll b/polly/test/ScopDetect/expand-region-correctly.ll
new file mode 100644
index 00000000000..ec1e7a7dfd2
--- /dev/null
+++ b/polly/test/ScopDetect/expand-region-correctly.ll
@@ -0,0 +1,45 @@
+; RUN: opt %loadPolly -polly-detect \
+; RUN: -analyze < %s | FileCheck %s
+
+; CHECK: Valid Region for Scop: if.end.1631 => for.cond.1647.outer
+
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
+define void @qtm_decompress() {
+entry:
+ br label %while.cond.outer.outer
+
+while.cond.outer.outer: ; preds = %entry
+ br label %if.end.1631
+
+if.end.1631: ; preds = %do.end.1721, %while.cond.outer.outer
+ br i1 false, label %for.cond.1647.preheader, label %if.then.1635
+
+if.then.1635: ; preds = %if.end.1631
+ br label %for.cond.1647.preheader
+
+for.cond.1647.preheader: ; preds = %if.then.1635, %if.end.1631
+ br label %for.cond.1647.outer
+
+for.cond.1647.outer: ; preds = %do.end.1685, %for.cond.1647.preheader
+ %bits_needed.5.ph = phi i8 [ 8, %for.cond.1647.preheader ], [ 0, %do.end.1685 ]
+ br label %for.cond.1647
+
+for.cond.1647: ; preds = %do.cond.1718, %for.cond.1647.outer
+ br i1 undef, label %do.cond.1718, label %if.then.1659
+
+if.then.1659: ; preds = %for.cond.1647
+ br i1 false, label %do.end.1685, label %if.then.1662
+
+if.then.1662: ; preds = %if.then.1659
+ unreachable
+
+do.end.1685: ; preds = %if.then.1659
+ br label %for.cond.1647.outer
+
+do.cond.1718: ; preds = %for.cond.1647
+ br i1 false, label %do.end.1721, label %for.cond.1647
+
+do.end.1721: ; preds = %do.cond.1718
+ br label %if.end.1631
+}
OpenPOWER on IntegriCloud