[llvm] [SLP] NFC. Replace MainOp and AltOp in TreeEntry with InstructionsState. (PR #120198)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 9 07:55:36 PST 2025


================
@@ -14846,14 +14843,15 @@ ResTy BoUpSLP::processBuildVector(const TreeEntry *E, Type *ScalarTy,
       }
     }
     // Gather extracts after we check for full matched gathers only.
-    if (!ExtractShuffles.empty() || E->getOpcode() != Instruction::Load ||
-        ((E->getOpcode() == Instruction::Load ||
+    if (!ExtractShuffles.empty() ||
+        (!E->hasState() || E->getOpcode() != Instruction::Load) ||
+        (((E->hasState() && E->getOpcode() == Instruction::Load) ||
----------------
alexey-bataev wrote:

Drop extra parens

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


More information about the llvm-commits mailing list