[all-commits] [llvm/llvm-project] b7e6e5: [SelectionDAG] Fix problematic call to EVT::change...
paulwalker-arm via All-commits
all-commits at lists.llvm.org
Wed Aug 9 05:51:57 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b7e6e568b4f28124060b868e433f36af18c510db
https://github.com/llvm/llvm-project/commit/b7e6e568b4f28124060b868e433f36af18c510db
Author: Paul Walker <paul.walker at arm.com>
Date: 2023-08-09 (Wed, 09 Aug 2023)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
M llvm/test/CodeGen/AArch64/active_lane_mask.ll
Log Message:
-----------
[SelectionDAG] Fix problematic call to EVT::changeVectorElementType().
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.
Differential Revision: https://reviews.llvm.org/D157392
More information about the All-commits
mailing list