llvm.org GIT mirror llvm / release_50 test / CodeGen / X86 / xray-empty-firstmbb.mir
release_50

Tree @release_50 (Download .tar.gz)

xray-empty-firstmbb.mir @release_50raw · history · blame

# RUN: llc -run-pass xray-instrumentation -mtriple=x86_64-unknown-linux-gnu -o - %s | FileCheck %s
#
# Make sure we can handle empty first basic blocks.

--- |

  define i32 @foo() noinline uwtable "xray-instruction-threshold"="1" {
  entry:
    unreachable
  }

...

---
name: foo
tracksRegLiveness: true
liveins:
  - { reg: '%edi'}
body:            |
  bb.0.entry:
    liveins: %edi
    ; CHECK-NOT: PATCHABLE_FUNCTION_ENTER
...