[all-commits] [llvm/llvm-project] b33a1c: [RISCV] Optimize vp.store with an all ones mask to...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Sep 22 09:22:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b33a1cc05b4800ae9e8c7df097c4a76c9da28c94
      https://github.com/llvm/llvm-project/commit/b33a1cc05b4800ae9e8c7df097c4a76c9da28c94
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-09-22 (Wed, 22 Sep 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vpstore.ll
    M llvm/test/CodeGen/RISCV/rvv/vpstore.ll

  Log Message:
  -----------
  [RISCV] Optimize vp.store with an all ones mask to avoid a vmset.

We can use riscv_vse intrinsic instead of riscv_vse_mask. The code here
is based on similar code for handling masked.scatter and vp.scatter.

Reviewed By: frasercrmck

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




More information about the All-commits mailing list