[PATCH] D80709: [SelectionDAG] Update getNode asserts for EXTRACT/INSERT_SUBVECTOR.

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 28 04:18:34 PDT 2020


paulwalker-arm created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
paulwalker-arm added reviewers: eli.friedman, sdesmalen, david-arm.
paulwalker-arm added a comment.

I'm waiting on a FileCheck patch to land before the fixed width code generation for SVE patches can move on so I've broken some assert fixes out of D80385 <https://reviews.llvm.org/D80385> to help protect future work.  There's no new tests as the core logic is already tested and D80385 <https://reviews.llvm.org/D80385> is required to exercise the corner cases.


The description of EXTACT_SUBVECTOR and INSERT_SUBVECTOR has been
changed to accommodate scalable vectors (see ISDOpcodes.h). This
patch updates the asserts used to verify these requirements when
using SelectionDAG's getNode interface.

This patch introduces the MVT function getVectorMinNumElements
that can be used against fixed-length and scalable vectors when
only the known minimum vector length is required.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80709

Files:
  llvm/include/llvm/CodeGen/ValueTypes.h
  llvm/include/llvm/Support/MachineValueType.h
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80709.266807.patch
Type: text/x-patch
Size: 4808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200528/966aa8d3/attachment-0001.bin>


More information about the llvm-commits mailing list