Tobias Grosser | a3aa423 | 2017-07-15 22:42:17 +0000 | [diff] [blame] | 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 | |
| 7 | define void @foo(i8* %str0) { |
| 8 | if.end32: |
| 9 | br label %while.cond |
| 10 | |
| 11 | while.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 | |
| 19 | lor.end: |
| 20 | br i1 false, label %exit, label %while.cond |
| 21 | |
| 22 | exit: |
| 23 | ret void |
| 24 | } |