diff options
author | Fraser Cormack <fraser@codeplay.com> | 2021-07-22 18:03:40 +0100 |
---|---|---|
committer | Fraser Cormack <fraser@codeplay.com> | 2021-07-26 10:15:08 +0100 |
commit | f924a3d47492b7b586ccfd1333ca086a7e2d88b2 (patch) | |
tree | f489435c022c6fc911f76bb4aeeebffe30631e84 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 0a3c7960cba15b57f679159c2bb4d20d10b86a5c (diff) | |
download | llvm-f924a3d47492b7b586ccfd1333ca086a7e2d88b2.zip llvm-f924a3d47492b7b586ccfd1333ca086a7e2d88b2.tar.gz llvm-f924a3d47492b7b586ccfd1333ca086a7e2d88b2.tar.bz2 |
[SelectionDAG] Support scalable-vector splats in yet more cases
This patch extends support for (scalable-vector) splats in the
DAGCombiner via the `ISD::matchBinaryPredicate` function, which enable a
variety of simple combines of constants.
Users of this function may now have to distinguish between
`BUILD_VECTOR` and `SPLAT_VECTOR` vector operands. The way of dealing
with this in-tree follows the approach added for
`ISD::matchUnaryPredicate` implemented in D94501.
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D106575
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions