2016-12-19 17:20:38 +08:00
|
|
|
# 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:
|
2018-02-01 06:04:26 +08:00
|
|
|
- { reg: '$edi'}
|
2016-12-19 17:20:38 +08:00
|
|
|
body: |
|
|
|
|
bb.0.entry:
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $edi
|
2016-12-19 17:20:38 +08:00
|
|
|
; CHECK-NOT: PATCHABLE_FUNCTION_ENTER
|
|
|
|
...
|