mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

xray-empty-firstmbb.mir does not test the intended code path. Change xray-instruction-threshold to 0 to exercise the code path. Delete xray-empty-function.mir . Empty MachineFunction does not work. Various passes (e.g. MachineDominatorTree) assume the presence of an entry block.
24 lines
431 B
YAML
24 lines
431 B
YAML
# 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"="0" {
|
|
entry:
|
|
unreachable
|
|
}
|
|
|
|
...
|
|
|
|
---
|
|
name: foo
|
|
tracksRegLiveness: true
|
|
liveins:
|
|
- { reg: '$edi'}
|
|
body: |
|
|
bb.0.entry:
|
|
liveins: $edi
|
|
; CHECK-NOT: PATCHABLE_FUNCTION_ENTER
|
|
...
|