[llvm] [MachineSink] Fix missing sinks along critical edges (PR #97618)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 09:23:29 PDT 2024
================
@@ -0,0 +1,185 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc -mtriple=riscv64 < %s | FileCheck %s
+
+define i1 @sink_li(ptr %text, ptr %text.addr.0) {
+; CHECK-LABEL: sink_li:
+; CHECK: # %bb.0: # %entry
+; CHECK-NEXT: addi sp, sp, -32
+; CHECK-NEXT: .cfi_def_cfa_offset 32
+; CHECK-NEXT: sd ra, 24(sp) # 8-byte Folded Spill
+; CHECK-NEXT: sd s0, 16(sp) # 8-byte Folded Spill
+; CHECK-NEXT: sd s1, 8(sp) # 8-byte Folded Spill
+; CHECK-NEXT: sd s2, 0(sp) # 8-byte Folded Spill
+; CHECK-NEXT: .cfi_offset ra, -8
----------------
mshockwave wrote:
Fixed.
https://github.com/llvm/llvm-project/pull/97618
More information about the llvm-commits
mailing list