[Mlir-commits] [mlir] [mlir][spirv] Retain nontemporal attribute when converting memref load/store (PR #82119)
Artem Tyurin
llvmlistbot at llvm.org
Mon Feb 26 03:36:19 PST 2024
================
@@ -481,6 +481,14 @@ calculateRequiredAlignment(Value accessedPtr, Operation *memrefAccessOp) {
assert((isa<memref::LoadOp, memref::StoreOp>(memrefAccessOp)) &&
"Bad op type");
+ auto nontemporalAttr = memrefAccessOp->getAttrOfType<BoolAttr>("nontemporal");
+ if (nontemporalAttr && nontemporalAttr.getValue()) {
+ return std::pair{
----------------
agentcooper wrote:
I updated the code to set `Nontemporal` only if `Aligned` is not set and added a test for this.
https://github.com/llvm/llvm-project/pull/82119
More information about the Mlir-commits
mailing list