| ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 4 |
| ; RUN: opt < %s -disable-output "-passes=print<scalar-evolution>" -scalar-evolution-max-iterations=0 -scalar-evolution-classify-expressions=0 2>&1 | FileCheck %s |
| ; PR2088 |
| |
| |
| define void @fun() { |
| ; CHECK-LABEL: 'fun' |
| ; CHECK-NEXT: Determining loop execution counts for: @fun |
| ; CHECK-NEXT: Loop %loop: backedge-taken count is i8 113 |
| ; CHECK-NEXT: Loop %loop: constant max backedge-taken count is i8 113 |
| ; CHECK-NEXT: Loop %loop: symbolic max backedge-taken count is i8 113 |
| ; CHECK-NEXT: Loop %loop: Trip multiple is 114 |
| ; |
| entry: |
| br label %loop |
| loop: |
| %i = phi i8 [ 0, %entry ], [ %i.next, %loop ] |
| %i.next = add i8 %i, 18 |
| %cond = icmp ne i8 %i.next, 4 |
| br i1 %cond, label %loop, label %exit |
| exit: |
| ret void |
| } |