[PATCH] D79452: [VectorCombine] scalarize binop of inserted elements into undef

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 6 03:11:48 PDT 2020


RKSimon added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/VectorCombine.cpp:320
+  Value *V0, *V1;
+  uint64_t Index;
+  if (!match(Ins0, m_OneUse(m_InsertElement(m_Undef(), m_Value(V0),
----------------
lebedev.ri wrote:
> Hm, do we have an interface to ask for cost of `InsertElement` with variable insert index?
Yes we set Index to -1 in the getVectorInstrCost call if its unknown/variable - we don't do much with it in x86 at least though........


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

https://reviews.llvm.org/D79452





More information about the llvm-commits mailing list