[PATCH] D132886: [SLP]Improve operands kind analaysis for constants.

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 29 14:48:52 PDT 2022


reames added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:5833
+    if (any_of(VL, [OpIdx, Op0](Value *V) {
+          return cast<Instruction>(V)->getOperand(OpIdx) == Op0;
+        }))
----------------
vdmitrie wrote:
> I believe this meant to be "!=".
Good catch!  Yes, it should be.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132886/new/

https://reviews.llvm.org/D132886



More information about the llvm-commits mailing list