[llvm] [XRay] Only avoid outlining pseudo-instructions, not whole blocks (PR #76520)

Daniel Hoekwater via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 29 09:34:45 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
----------------
dhoekwater wrote:

Nice catch, fixed.

https://github.com/llvm/llvm-project/pull/76520


More information about the llvm-commits mailing list