[llvm] [XRay] Only avoid outlining pseudo-instructions, not whole blocks (PR #76520)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 11 15:49:08 PST 2024
================
@@ -75,3 +75,12 @@ if.end:
call void @foo(i32 5, i32 6, i32 7, i32 8)
ret void
}
+
+;; Make sure that OUTLINED_FUNCTION contains the right instructions
+; CHECK: [[OUTLINED_FUNCTION]]:
+; CHECK-NEXT: # %bb.0:
+; CHECK-NEXT: li a0, 1
+; CHECK-NEXT: li a1, 2
+; CHECK-NEXT: li a2, 3
+; CHECK-NEXT: li a3, 4
+; CHECK-NEXT: jr t0
----------------
MaskRay wrote:
ensure '\n' at the end of the file
https://github.com/llvm/llvm-project/pull/76520
More information about the llvm-commits
mailing list