summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/MIR/X86/branch-probabilities.mir
blob: 4aacd2d5cef1deaae38a959977b428d591daa945 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# RUN: llc -o - %s -mtriple=x86_64-- -run-pass=none | FileCheck %s
---
# Check that branch probabilities are printed correctly as hex numbers.
# CHECK-LABEL: name: test
# CHECK: bb.0:
# CHECK-NEXT: successors: %bb.1(0x66666666), %bb.2(0x1999999a)
name: test
body: |
  bb.0:
    successors: %bb.1(4), %bb.2(1)
    JE_1 %bb.2, implicit undef %eflags

  bb.1:
    NOOP

  bb.2:
    RETQ undef %eax
...
OpenPOWER on IntegriCloud