[llvm] [RISCV] Exclude LPAD in machine outliner (PR #157220)
Ming-Yi Lai via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 7 19:50:46 PDT 2025
================
@@ -0,0 +1,61 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc -mtriple riscv64 -mattr=+experimental-zicfilp < %s | FileCheck %s --check-prefixes=CHECK,RV64
+
+define i32 @test1() #0 {
+; CHECK-LABEL: test1:
+; CHECK: # %bb.0: # %entry
+; CHECK-NEXT: lpad 0
+; CHECK-NEXT: li a0, 0
+; CHECK-NEXT: ret
+entry:
+ ret i32 0
+}
----------------
mylai-mtk wrote:
Find a testcase that results in `OUTLINED_FUNCTION` being created, and check that LPADs are still in their original place instead of being outlined into `OUTLINED_FUNCTION`.
https://github.com/llvm/llvm-project/pull/157220
More information about the llvm-commits
mailing list