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

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 5 07:52:02 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) {
----------------
tschuett wrote:

`not` is not used in the repo. Please use `!`.

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


More information about the llvm-commits mailing list