[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:12:42 PDT 2024
================
@@ -6820,9 +6821,7 @@ void BoUpSLP::buildTree_rec(ArrayRef<Value *> VL, unsigned Depth,
// Special processing for sorted pointers for ScatterVectorize node with
// constant indeces only.
- if (AreAllSameInsts && UserTreeIdx.UserTE &&
- UserTreeIdx.UserTE->State == TreeEntry::ScatterVectorize &&
- !(S.getOpcode() && allSameBlock(VL))) {
+ if (not AreAllSameBlock && AreScatterAllGEPSameBlock) {
----------------
tcwzxx wrote:
Thanks, fixed.
https://github.com/llvm/llvm-project/pull/97826
More information about the llvm-commits
mailing list