llvm-for-llvmta/test/CodeGen/MIR/X86/branch-probabilities.mir

19 lines
403 B
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
# 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)
JCC_1 %bb.2, 4, implicit undef $eflags
bb.1:
NOOP
bb.2:
RETQ undef $eax
...