[llvm] Make the logic for checking scatter vectorized nodes of GEP clearer (PR #97826)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 5 18:32:47 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:
Thanks, fixed.
https://github.com/llvm/llvm-project/pull/97826
More information about the llvm-commits
mailing list