[all-commits] [llvm/llvm-project] f924a3: [SelectionDAG] Support scalable-vector splats in y...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Mon Jul 26 02:24:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f924a3d47492b7b586ccfd1333ca086a7e2d88b2
      https://github.com/llvm/llvm-project/commit/f924a3d47492b7b586ccfd1333ca086a7e2d88b2
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2021-07-26 (Mon, 26 Jul 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/combine-splats.ll
    M llvm/test/CodeGen/RISCV/rvv/urem-seteq-vec.ll

  Log Message:
  -----------
  [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




More information about the All-commits mailing list