[llvm] [AArch64] Increase scatter overhead on Neoverse-V2 (PR #101296)

Madhur Amilkanthwar via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 08:39:24 PDT 2024


================
@@ -0,0 +1,10 @@
+; RUN: opt -mtriple aarch64 -mcpu=neoverse-v2 -passes="print<cost-model>" -disable-output | FileCheck %s
+; CHECK: Cost Model: Found an estimated cost of 52 for instruction: call void @llvm.masked.scatter.nxv4f32
+
+define void @masked_scatter_nxv8f32_i64(<vscale x 4 x float> %data, <vscale x 4 x ptr> %b, <vscale x 4 x i64> %V) #0 {
+;%1 = add nsw <vscale x 4 x i64> %V, shufflevector (<vscale x 4 x i64> insertelement (<vscale x 4 x i64> poison, i64 1, i64 0), <vscale x 4 x i64> poison, <vscale x 4 x i32> zeroinitializer)
+;%ptrs = getelementptr float, ptr %b, <vscale x 4 x i64> %1
+call void @llvm.masked.scatter.nxv4f32.nxv4p0(<vscale x 4 x float> %data, <vscale x 4 x ptr> %b, i32 4, <vscale x 4 x i1> shufflevector (<vscale x 4 x i1> insertelement (<vscale x 4 x i1> poison, i1 true, i64 0), <vscale x 4 x i1> poison, <vscale x 4 x i32> zeroinitializer))
+ret void
----------------
madhur13490 wrote:

Done

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


More information about the llvm-commits mailing list