[llvm] [SelectionDAG] Preserve cache hint metadata during legalization (PR #225273)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 01:49:17 PDT 2026


================
@@ -1493,6 +1493,13 @@ class MemSDNode : public SDNode {
     return getMemOperand()->getMemCacheHint();
   }
 
+  /// Returns LLVM IR metadata carried by this memory access, except for range
+  /// metadata. Range metadata describes a loaded value and cannot be blindly
+  /// transferred when an access is split or its type changes.
+  MMOMetadata getNonRangeMMOMetadata() const {
----------------
arsenm wrote:

I don't really like the non-range naming, How would this be used in other contexts? Should it express the types of metadata it does preserve? 

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


More information about the llvm-commits mailing list