[PATCH] D88225: [DAG] Fold vector mul(x,0)/mul(x,1) to a clearing mask

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 06:33:11 PDT 2020


foad added a comment.

Looks good to me but I guess it needs approval from the affected target maintainers.



================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:3711
+  if (VT.isFixedLengthVector()) {
+    SmallBitVector ClearMask;
+    auto IsClearMask = [&ClearMask](ConstantSDNode *V) {
----------------
Maybe reserve() space in ClearMask, or initialize it with an explicit length, for efficiency?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88225



More information about the llvm-commits mailing list