[llvm] [RISCV] Allow hoisting VXRM writes out of loops speculatively (PR #110044)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 27 10:47:47 PDT 2024


================
@@ -0,0 +1,386 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
+
+; RUN: sed 's/iXLen/i32/g' %s | llc -mtriple=riscv32 -mattr=+v,+m \
+; RUN:   -verify-machineinstrs | FileCheck %s --check-prefixes=RV32
+; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v,+m \
+; RUN:   -verify-machineinstrs | FileCheck %s --check-prefixes=RV64
+
+
+; test1
+define dso_local void @test1(ptr nocapture noundef writeonly %dst, i32 noundef signext %i_dst_stride, ptr nocapture noundef readonly %src1, i32 noundef signext %i_src1_stride, ptr nocapture noundef readonly %src2, i32 noundef signext %i_src2_stride, i32 noundef signext %i_width, i32 noundef signext %i_height) local_unnamed_addr #0 {
----------------
topperc wrote:

Drop `dso_local`, `local_unnamed_addr`, and `#0`

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


More information about the llvm-commits mailing list