brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · 397e1d5 Raw
63 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 42; RUN: opt -disable-output "-passes=print<scalar-evolution>" -scalar-evolution-classify-expressions=0 < %s 2>&1 | FileCheck %s3 4define void @f(i32 %n, ptr %ptr) {5;6; CHECK-LABEL: 'f'7; CHECK-NEXT:  Determining loop execution counts for: @f8; CHECK-NEXT:  Loop %loop: <multiple exits> Unpredictable backedge-taken count.9; CHECK-NEXT:    exit count for loop: i32 010; CHECK-NEXT:    exit count for be: ***COULDNOTCOMPUTE***11; CHECK-NEXT:  Loop %loop: constant max backedge-taken count is i32 012; CHECK-NEXT:  Loop %loop: symbolic max backedge-taken count is i32 013; CHECK-NEXT:    symbolic max exit count for loop: i32 014; CHECK-NEXT:    symbolic max exit count for be: ***COULDNOTCOMPUTE***15;16entry:17  br label %loop18 19loop:20  %iv = phi i32 [ 0, %entry ], [ %iv.inc, %be ]21  %iv.inc = add i32 %iv, 122  %unswitch_cond_root = icmp ne i32 %iv.inc, 4223  %us.0 = and i1 %unswitch_cond_root, %unswitch_cond_root24  %us.1 = and i1 %us.0, %us.025  %us.2 = and i1 %us.1, %us.126  %us.3 = and i1 %us.2, %us.227  %us.4 = and i1 %us.3, %us.328  %us.5 = and i1 %us.4, %us.429  %us.6 = and i1 %us.5, %us.530  %us.7 = and i1 %us.6, %us.631  %us.8 = and i1 %us.7, %us.732  %us.9 = and i1 %us.8, %us.833  %us.10 = and i1 %us.9, %us.934  %us.11 = and i1 %us.10, %us.1035  %us.12 = and i1 %us.11, %us.1136  %us.13 = and i1 %us.12, %us.1237  %us.14 = and i1 %us.13, %us.1338  %us.15 = and i1 %us.14, %us.1439  %us.16 = and i1 %us.15, %us.1540  %us.17 = and i1 %us.16, %us.1641  %us.18 = and i1 %us.17, %us.1742  %us.19 = and i1 %us.18, %us.1843  %us.20 = and i1 %us.19, %us.1944  %us.21 = and i1 %us.20, %us.2045  %us.22 = and i1 %us.21, %us.2146  %us.23 = and i1 %us.22, %us.2247  %us.24 = and i1 %us.23, %us.2348  %us.25 = and i1 %us.24, %us.2449  %us.26 = and i1 %us.25, %us.2550  %us.27 = and i1 %us.26, %us.2651  %us.28 = and i1 %us.27, %us.2752  %us.29 = and i1 %us.28, %us.2853  br i1 %us.29, label %leave, label %be54 55be:56  store volatile i32 0, ptr %ptr57  %becond = icmp ult i32 %iv.inc, %n58  br i1 %becond, label %leave, label %loop59 60leave:61  ret void62}63