1; RUN: opt %loadPolly -analyze -polly-detect \ 2; RUN: -pass-remarks-missed="polly-detect" \ 3; RUN: < %s 2>&1| FileCheck %s 4 5; CHECK: remark: <unknown>:0:0: Loop cannot be handled because not all latches are part of loop region. 6 7define void @foo(i8* %str0) { 8if.end32: 9 br label %while.cond 10 11while.cond: 12 %str.1 = phi i8* [%str0, %if.end32], [%incdec.ptr58364, %lor.end], [%incdec.ptr58364, %while.cond] 13 %tmp5 = load i8, i8* %str.1, align 1 14 %.off367 = add i8 %tmp5, -48 15 %tmp6 = icmp ult i8 %.off367, 10 16 %incdec.ptr58364 = getelementptr inbounds i8, i8* %str.1, i64 1 17 br i1 %tmp6, label %while.cond, label %lor.end 18 19lor.end: 20 br i1 false, label %exit, label %while.cond 21 22exit: 23 ret void 24} 25