[all-commits] [llvm/llvm-project] 1ef569: [DAGCombiner] Support fold zero scalar vector.

junparser via All-commits all-commits at lists.llvm.org
Tue Apr 20 01:29:36 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ef5699d1a86bf1864eb4633f752c073630c1641
      https://github.com/llvm/llvm-project/commit/1ef5699d1a86bf1864eb4633f752c073630c1641
  Author: Jun Ma <JunMa at linux.alibaba.com>
  Date:   2021-04-20 (Tue, 20 Apr 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/AArch64/sve-int-arith.ll
    M llvm/test/CodeGen/AArch64/sve-int-log.ll
    M llvm/test/CodeGen/RISCV/rvv/vdiv-sdnode-rv32.ll
    M llvm/test/CodeGen/RISCV/rvv/vdiv-sdnode-rv64.ll
    M llvm/test/CodeGen/RISCV/rvv/vrem-sdnode-rv32.ll
    M llvm/test/CodeGen/RISCV/rvv/vrem-sdnode-rv64.ll

  Log Message:
  -----------
  [DAGCombiner] Support fold zero scalar vector.

This patch changes ISD::isBuildVectorAllZeros to
ISD::isConstantSplatVectorAllZeros which handles zero sclar vector.

TestPlan: check-llvm

Differential Revision: https://reviews.llvm.org/D100813




More information about the All-commits mailing list