llvm/polly/test/ScopDetect/expand-region-correctly.ll
Michael Kruse 5c02808131 [polly] Introduce -polly-print-* passes to replace -analyze.
The `opt -analyze` option only works with the legacy pass manager and might be removed in the future, as explained in llvm.org/PR53733. This patch introduced -polly-print-* passes that print what the pass would print with the `-analyze` option and replaces all uses of `-analyze` in the regression tests.

There are two exceptions: `CodeGen\single_loop_param_less_equal.ll` and `CodeGen\loop_with_condition_nested.ll` use `-analyze on the `-loops` pass which is not part of Polly.

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D120782
2022-03-14 10:27:15 -05:00

45 lines
1.7 KiB
LLVM

; RUN: opt %loadPolly -polly-print-detect -disable-output < %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
}