[PATCH] D144536: [VP] Reorder is_int_min_poison/is_zero_poison operand before mask for vp.abs/ctlz/cttz.

Yeting Kuo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 21 23:36:03 PST 2023


fakepaper56 created this revision.
fakepaper56 added reviewers: craig.topper, reames, frasercrmck, rogfer01, eopXD.
Herald added subscribers: luke, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
Herald added a project: All.
fakepaper56 requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, jdoerfert, MaskRay.
Herald added a project: LLVM.

The patch ensures last two operands of vp.abs/ctlz/cttz are mask and evl.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144536

Files:
  llvm/include/llvm/IR/Intrinsics.td
  llvm/include/llvm/IR/VPIntrinsics.def
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/test/Analysis/CostModel/RISCV/int-bit-manip.ll
  llvm/test/CodeGen/RISCV/rvv/abs-vp.ll
  llvm/test/CodeGen/RISCV/rvv/ctlz-vp.ll
  llvm/test/CodeGen/RISCV/rvv/cttz-vp.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-abs-vp.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-ctlz-vp.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-cttz-vp.ll
  llvm/unittests/IR/VPIntrinsicTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144536.499380.patch
Type: text/x-patch
Size: 293553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230222/d5c7c013/attachment-0001.bin>


More information about the llvm-commits mailing list