[llvm] [GVN] Handle scalable vectors with the same size in VNCoercion (PR #123984)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 00:17:47 PST 2025


================
@@ -21,6 +21,10 @@ bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy,
   if (StoredTy == LoadTy)
     return true;
 
+  if (isa<ScalableVectorType>(StoredTy) &&
----------------
nikic wrote:

Do we have to check LoadTy as well? To e.g. make sure it doesn't have an aggregate wrapper around a single scalable type?

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


More information about the llvm-commits mailing list