[llvm] Make the logic for checking scatter vectorized nodes of GEP clearer (PR #97826)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 7 19:49:54 PDT 2024


================
@@ -6725,9 +6725,9 @@ void BoUpSLP::buildTree_rec(ArrayRef<Value *> VL, unsigned Depth,
   bool IsScatterVectorizeUserTE =
       UserTreeIdx.UserTE &&
       UserTreeIdx.UserTE->State == TreeEntry::ScatterVectorize;
-  bool AreAllSameInsts =
-      (S.getOpcode() && allSameBlock(VL)) ||
-      (S.OpValue->getType()->isPointerTy() && IsScatterVectorizeUserTE &&
+  bool AreAllSameBlock = (S.getOpcode() && allSameBlock(VL));
----------------
tcwzxx wrote:

Since I don't have write permissions, could you help me merge?

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


More information about the llvm-commits mailing list