[Mlir-commits] [mlir] [mlir][llvm] Add nontemporal field to llvm.intr.masked.store (PR #205566)
Tobias Gysi
llvmlistbot at llvm.org
Wed Jun 24 08:19:46 PDT 2026
================
@@ -566,6 +566,9 @@ llvm.func @masked_load_store_intrinsics(%A: !llvm.ptr, %mask: vector<7xi1>) {
// CHECK: call void @llvm.masked.store.v7f32.p0(<7 x float> %{{.*}}, ptr align 1 %0, <7 x i1> %{{.*}})
llvm.intr.masked.store %b, %A, %mask { alignment = 1: i32} :
vector<7xf32>, vector<7xi1> into !llvm.ptr
+ // CHECK: call void @llvm.masked.store.v7f32.p0(<7 x float> %{{.*}}, ptr align 1 %0, <7 x i1> %{{.*}}), !nontemporal !1
----------------
gysit wrote:
```suggestion
// CHECK: call void @llvm.masked.store.v7f32.p0(<7 x float> %{{.*}}, ptr align 1 %0, <7 x i1> %{{.*}}), !nontemporal !{{.*}}
```
nit: Just saw that we match the metadata number directly. Let's avoid that and instead match an arbitrary number. Can you do the same edit for the masked load above on line 560?
https://github.com/llvm/llvm-project/pull/205566
More information about the Mlir-commits
mailing list