[PATCH] D121080: [RISCV] Fix incorrect optimization for masked vmsgeu.vi with 0 immediate.

Zakk Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 6 15:56:21 PST 2022


khchen created this revision.
khchen added reviewers: Chenbing.Zheng, craig.topper, kito-cheng, arcbbb, monkchiang, eopXD.
Herald added subscribers: VincentWu, luke957, achieveartificialintelligence, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
Herald added a project: All.
khchen requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, MaskRay.
Herald added a project: LLVM.

vmsgeu.vi with 0 is always true, but in the masked with mask undisturbed
policy, we still need to keep inactive elelemt which come from maskedoff.

We could return mask directly if it's mask agnostic policy in the future.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121080

Files:
  llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
  llvm/test/CodeGen/RISCV/rvv/vmsgeu-rv32.ll
  llvm/test/CodeGen/RISCV/rvv/vmsgeu-rv64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121080.413322.patch
Type: text/x-patch
Size: 7701 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220306/90c8c257/attachment.bin>


More information about the llvm-commits mailing list