[llvm] [MemoryLocation] Size Scalable Masked MemOps (PR #154785)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 21 08:23:32 PDT 2025


================
@@ -150,6 +150,29 @@ MemoryLocation::getForDest(const CallBase *CB, const TargetLibraryInfo &TLI) {
   return MemoryLocation::getBeforeOrAfter(UsedV, CB->getAAMetadata());
 }
 
+static std::optional<FixedVectorType *>
+getFixedTypeFromScalableMemOp(Value *Mask, Type *Ty) {
+  auto ActiveLaneMask = dyn_cast<IntrinsicInst>(Mask);
----------------
nikic wrote:

```suggestion
  auto *ActiveLaneMask = dyn_cast<IntrinsicInst>(Mask);
```
etc

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


More information about the llvm-commits mailing list