[PATCH] D83231: [CodeGen] Don't combine extract + concat vectors with non-legal types

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 7 04:26:44 PDT 2020


lebedev.ri requested changes to this revision.
lebedev.ri added inline comments.
This revision now requires changes to proceed.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:17817-17818
+             VecVT.getVectorElementType() == ScalarVT &&
+             TLI.isTypeLegal(
+                 VecOp.getOperand(0).getValueType().getVectorElementType())) {
     // extract_vector_elt (concat_vectors v2i16:a, v2i16:b), 0
----------------
!LegalTyepes || TLI.isTypeLegal(


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D83231





More information about the llvm-commits mailing list