[PATCH] D157392: [SelectionDAG] Fix problematic call to EVT::changeVectorElementType().

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 8 06:40:57 PDT 2023


paulwalker-arm created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
paulwalker-arm requested review of this revision.
Herald added subscribers: llvm-commits, alextsao1999.
Herald added a project: LLVM.

The function changeVectorElementType assumes MVT input types will
result in MVT output types.  There's no gurantee this is possible
during early code generation and so this patch converts an instance
used during initial DAG construction to instead explicitly create a
new EVT.

NOTE: I could have added more MVTs, but that seemed unscalable as
you can either have MVTs with 100% element count coverage or 100%
bitwidth coverage, but not both.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157392

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/test/CodeGen/AArch64/active_lane_mask.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157392.548194.patch
Type: text/x-patch
Size: 4614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230808/54e12a6b/attachment.bin>


More information about the llvm-commits mailing list