5c02808131
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
33 lines
1.1 KiB
LLVM
33 lines
1.1 KiB
LLVM
; RUN: opt %loadPolly -polly-print-detect -pass-remarks-missed="polly-detect" -disable-output < %s 2>&1| FileCheck %s
|
|
|
|
; CHECK: remark: <unknown>:0:0: Loop cannot be handled because not all latches are part of loop region.
|
|
; CHECK: remark: <unknown>:0:0: Loop cannot be handled because not all latches are part of loop region.
|
|
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
define void @baz(i32 %before) {
|
|
bb:
|
|
br label %bb1
|
|
|
|
bb1: ; preds = %bb
|
|
br label %bb2
|
|
|
|
bb2: ; preds = %bb8, %bb7, %bb2, %bb1
|
|
%tmp = phi i32 [ %before, %bb1 ], [ 0, %bb8 ], [ %tmp4, %bb7 ], [ %tmp4, %bb2 ]
|
|
%tmp3 = or i32 undef, undef
|
|
%tmp4 = udiv i32 %tmp3, 10
|
|
%tmp5 = trunc i32 undef to i8
|
|
%tmp6 = icmp eq i8 %tmp5, 0
|
|
br i1 %tmp6, label %bb7, label %bb2
|
|
|
|
bb7: ; preds = %bb2
|
|
br i1 undef, label %bb8, label %bb2
|
|
|
|
bb8: ; preds = %bb7
|
|
br i1 undef, label %bb9, label %bb2
|
|
|
|
bb9: ; preds = %bb8
|
|
unreachable
|
|
}
|