brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 58ed6ae Raw
37 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 42; RUN: opt < %s -disable-output "-passes=print<scalar-evolution>" -scalar-evolution-classify-expressions=0 2>&1 | FileCheck %s3 4declare void @foo()5 6define void @test1() nounwind {7;8; CHECK-LABEL: 'test1'9; CHECK-NEXT:  Determining loop execution counts for: @test110; CHECK-NEXT:  Loop %for.cond: backedge-taken count is i32 211; CHECK-NEXT:  Loop %for.cond: constant max backedge-taken count is i32 212; CHECK-NEXT:  Loop %for.cond: symbolic max backedge-taken count is i32 213; CHECK-NEXT:  Loop %for.cond: Trip multiple is 314;15entry:16  br label %for.cond17 18for.cond:                                         ; preds = %if.end, %entry19  %i.0 = phi i32 [ 2, %entry ], [ %dec, %if.end ]20  switch i32 %i.0, label %if.end [21    i32 0, label %for.end22    i32 1, label %if.then23  ]24 25if.then:                                          ; preds = %for.cond26  tail call void @foo()27  br label %if.end28 29if.end:                                           ; preds = %for.cond, %if.then30  %dec = add nsw i32 %i.0, -131  br label %for.cond32 33for.end:                                          ; preds = %for.cond34  ret void35 36}37