23 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<detect>' -polly-print-detect -pass-remarks-missed=polly-detect -disable-output < %s 2>&1 | FileCheck %s2 3; CHECK: remark: <unknown>:0:0: Loop cannot be handled because not all latches are part of loop region.4 5define void @foo(ptr %str0) {6if.end32:7 br label %while.cond8 9while.cond:10 %str.1 = phi ptr [%str0, %if.end32], [%incdec.ptr58364, %lor.end], [%incdec.ptr58364, %while.cond]11 %tmp5 = load i8, ptr %str.1, align 112 %.off367 = add i8 %tmp5, -4813 %tmp6 = icmp ult i8 %.off367, 1014 %incdec.ptr58364 = getelementptr inbounds i8, ptr %str.1, i64 115 br i1 %tmp6, label %while.cond, label %lor.end16 17lor.end:18 br i1 false, label %exit, label %while.cond19 20exit:21 ret void22}23