diff options
author | Fangrui Song <maskray@google.com> | 2020-01-01 22:14:33 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-01-01 22:21:11 -0800 |
commit | aa8217289864d27b023b31e3efbaa7eb05e77092 (patch) | |
tree | a1216e642de1c04c41a31ac1814c88a214f14fd5 | |
parent | 0359e1d6be2e4449ece5063c6b2a08a5094798b4 (diff) | |
download | bcm5719-llvm-aa8217289864d27b023b31e3efbaa7eb05e77092.tar.gz bcm5719-llvm-aa8217289864d27b023b31e3efbaa7eb05e77092.zip |
[XRay][test] Fix xray-empty-firstmbb.mir and delete incorrect xray-empty-function.mir
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.
-rw-r--r-- | llvm/test/CodeGen/X86/xray-empty-firstmbb.mir | 2 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/xray-empty-function.mir | 13 |
2 files changed, 1 insertions, 14 deletions
diff --git a/llvm/test/CodeGen/X86/xray-empty-firstmbb.mir b/llvm/test/CodeGen/X86/xray-empty-firstmbb.mir index 5949a4add15..e87c86591ce 100644 --- a/llvm/test/CodeGen/X86/xray-empty-firstmbb.mir +++ b/llvm/test/CodeGen/X86/xray-empty-firstmbb.mir @@ -4,7 +4,7 @@ --- | - define i32 @foo() noinline uwtable "xray-instruction-threshold"="1" { + define i32 @foo() noinline uwtable "xray-instruction-threshold"="0" { entry: unreachable } diff --git a/llvm/test/CodeGen/X86/xray-empty-function.mir b/llvm/test/CodeGen/X86/xray-empty-function.mir deleted file mode 100644 index 178771a3c63..00000000000 --- a/llvm/test/CodeGen/X86/xray-empty-function.mir +++ /dev/null @@ -1,13 +0,0 @@ -# RUN: llc -run-pass xray-instrumentation -mtriple=x86_64-unknown-linux-gnu -o - %s | FileCheck %s -# -# Make sure we can handle empty functions. ---- -name: empty -tracksRegLiveness: true -liveins: - - { reg: '$edi'} -body: | - bb.0: - ; CHECK-NOT: PATCHABLE_FUNCTION_ENTER -... - |