Skip to content

Commit aa82172

Browse files
committed
[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.
1 parent 0359e1d commit aa82172

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

llvm/test/CodeGen/X86/xray-empty-firstmbb.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
--- |
66

7-
define i32 @foo() noinline uwtable "xray-instruction-threshold"="1" {
7+
define i32 @foo() noinline uwtable "xray-instruction-threshold"="0" {
88
entry:
99
unreachable
1010
}

llvm/test/CodeGen/X86/xray-empty-function.mir

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)