brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · ed25632 Raw
48 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py2; RUN: opt < %s -disable-output "-passes=print<scalar-evolution>" -scalar-evolution-classify-expressions=0 2>&1 | FileCheck %s3 4@mode_table = global [4 x i32] zeroinitializer          ; <ptr> [#uses=1]5 6define i8 @f() {7; CHECK-LABEL: 'f'8; CHECK-NEXT:  Determining loop execution counts for: @f9; CHECK-NEXT:  Loop %bb: <multiple exits> Unpredictable backedge-taken count.10; CHECK-NEXT:    exit count for bb: ***COULDNOTCOMPUTE***11; CHECK-NEXT:    exit count for bb2: i8 112; CHECK-NEXT:  Loop %bb: constant max backedge-taken count is i8 113; CHECK-NEXT:  Loop %bb: symbolic max backedge-taken count is i8 114; CHECK-NEXT:    symbolic max exit count for bb: ***COULDNOTCOMPUTE***15; CHECK-NEXT:    symbolic max exit count for bb2: i8 116;17entry:18  tail call i32 @fegetround( )          ; <i32>:0 [#uses=1]19  br label %bb20 21bb:             ; preds = %bb4, %entry22  %mode.0 = phi i8 [ 0, %entry ], [ %indvar.next, %bb4 ]                ; <i8> [#uses=4]23  zext i8 %mode.0 to i32                ; <i32>:1 [#uses=1]24  getelementptr [4 x i32], ptr @mode_table, i32 0, i32 %1           ; <ptr>:2 [#uses=1]25  load i32, ptr %2, align 4         ; <i32>:3 [#uses=1]26  icmp eq i32 %3, %0            ; <i1>:4 [#uses=1]27  br i1 %4, label %bb1, label %bb228 29bb1:            ; preds = %bb30  ret i8 %mode.031 32bb2:            ; preds = %bb33  icmp eq i8 %mode.0, 1         ; <i1>:5 [#uses=1]34  br i1 %5, label %bb5, label %bb435 36bb4:            ; preds = %bb237  %indvar.next = add i8 %mode.0, 1              ; <i8> [#uses=1]38  br label %bb39 40bb5:            ; preds = %bb241  tail call void @raise_exception( ) noreturn42  unreachable43}44 45declare i32 @fegetround()46 47declare void @raise_exception() noreturn48