[PATCH] D133255: [RISCV] Transform VMERGE_VVM_<LMUL>_TU with all ones mask to VADD_VI_<LMUL>_TU.

Yeting Kuo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 5 01:16:54 PDT 2022


fakepaper56 added a comment.

In D133255#3769573 <https://reviews.llvm.org/D133255#3769573>, @craig.topper wrote:

> In D133255#3769555 <https://reviews.llvm.org/D133255#3769555>, @fakepaper56 wrote:
>
>> I still moved useAllOnesMask into performVMergeToVAdd, since only
>>  performVMergeToVAdd needs to call useAllOnesMask.
>
> Doesn't doPeepholeMaskedRVV call usesAllOnesMask on line 2555?

But the new function `performCombineVMergeAndVOps` also serve vmerge.vvm without all ones mask.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133255/new/

https://reviews.llvm.org/D133255



More information about the llvm-commits mailing list