[Mlir-commits] [mlir] [mlir][LLVM] Add !invariant.group metadata to llvm.load and llvm.store (PR #115723)
Tobias Gysi
llvmlistbot at llvm.org
Mon Nov 11 08:57:02 PST 2024
================
@@ -395,6 +397,10 @@ def LLVM_LoadOp : LLVM_MemAccessOpBase<"load",
llvm::MDNode *metadata = llvm::MDNode::get(inst->getContext(), std::nullopt);
inst->setMetadata(llvm::LLVMContext::MD_invariant_load, metadata);
}
+ if ($invariantGroup) {
----------------
gysit wrote:
nit: Can you add a setInvariantGroup code pattern similar to setAlignmentCode and use it here and for the store?
https://github.com/llvm/llvm-project/pull/115723
More information about the Mlir-commits
mailing list