[PATCH] D135278: [VectorCombine] convert scalar fneg with insert/extract to vector fneg

Thorsten via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 9 07:21:14 PDT 2022


tschuett added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/VectorCombine.cpp:563
+  SmallVector<int> Mask;
+  for (unsigned i = 0, e = VecTy->getNumElements(); i != e; ++i) {
+    if (i == Index)
----------------
Tiniest nit: You could `Mask.reserve(VecTy->getNumElements());`


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

https://reviews.llvm.org/D135278



More information about the llvm-commits mailing list