brintos

brintos / llvm-project-archived public Read only

0
0
Text · 816 B · 21a96f7 Raw
30 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py2; RUN: opt < %s -passes='print<branch-prob>' -disable-output 2>&1 | FileCheck %s3 4define void @fct() {5; CHECK-LABEL: 'fct'6; CHECK-NEXT:  ---- Branch Probabilities ----7; CHECK-NEXT:    edge %entry -> %0 probability is 0x80000000 / 0x80000000 = 100.00% [HOT edge]8; CHECK-NEXT:    edge %0 -> %1 probability is 0x80000000 / 0x80000000 = 100.00% [HOT edge]9;10entry:11  br label %0120:13  br label %1141:15  ret void16}17 18define void @fct2() {19; CHECK-LABEL: 'fct2'20; CHECK-NEXT:  ---- Branch Probabilities ----21; CHECK-NEXT:    edge %0 -> %1 probability is 0x80000000 / 0x80000000 = 100.00% [HOT edge]22; CHECK-NEXT:    edge %1 -> %2 probability is 0x80000000 / 0x80000000 = 100.00% [HOT edge]23;24  br label %1251:26  br label %2272:28  ret void29}30