Files
clang-p2996/llvm/test/Transforms/SampleProfile/pseudo-probe.mir
Simon Pilgrim d391e4fe84 [X86] Update RET/LRET instruction to use the same naming convention as IRET (PR36876). NFC
Be more consistent in the naming convention for the various RET instructions to specify in terms of bitwidth.

Helps prevent future scheduler model mismatches like those that were only addressed in D44687.

Differential Revision: https://reviews.llvm.org/D113302
2021-11-07 15:06:54 +00:00

30 lines
860 B
YAML

# REQUIRES: x86-registered-target
# Ensure llc can read and parse MIR pseudo probe operations.
# RUN: llc -O0 -mtriple x86_64-- -run-pass none %s -o - | FileCheck %s
# CHECK: PSEUDO_PROBE 6699318081062747564, 1, 0, 0
# CHECK: PSEUDO_PROBE 6699318081062747564, 3, 0, 0
# CHECK: PSEUDO_PROBE 6699318081062747564, 4, 0, 0
# CHECK: PSEUDO_PROBE 6699318081062747564, 2, 0, 0
# CHECK: PSEUDO_PROBE 6699318081062747564, 4, 0, 0
name: foo
body: |
bb.0:
TEST32rr killed renamable $edi, renamable $edi, implicit-def $eflags
PSEUDO_PROBE 6699318081062747564, 1, 0, 0
JCC_1 %bb.1, 4, implicit $eflags
bb.2:
PSEUDO_PROBE 6699318081062747564, 3, 0, 0
PSEUDO_PROBE 6699318081062747564, 4, 0, 0
RET64
bb.1:
PSEUDO_PROBE 6699318081062747564, 2, 0, 0
PSEUDO_PROBE 6699318081062747564, 4, 0, 0
RET64
...