[all-commits] [llvm/llvm-project] 1b56b2: [RISCV] Transform VMERGE_VVM_<LMUL>_TU with all on...

Yeting Kuo via All-commits all-commits at lists.llvm.org
Tue Sep 13 19:01:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b56b2b2678cde21f7c20e83f881ded9b96518e4
      https://github.com/llvm/llvm-project/commit/1b56b2b2678cde21f7c20e83f881ded9b96518e4
  Author: Yeting Kuo <yeting.kuo at sifive.com>
  Date:   2022-09-14 (Wed, 14 Sep 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
    A llvm/test/CodeGen/RISCV/rvv/rvv-vmerge-to-vadd.ll

  Log Message:
  -----------
  [RISCV] Transform VMERGE_VVM_<LMUL>_TU with all ones mask to VADD_VI_<LMUL>_TU.

The transformation is benefit because vmerge.vvm always needs mask operand but
vadd.vi may not.

Reviewed By: craig.topper

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




More information about the All-commits mailing list