[VP] Reorder is_int_min_poison/is_zero_poison operand before mask for vp.abs/ctlz...
authorYeting Kuo <yeting.kuo@sifive.com>
Wed, 22 Feb 2023 06:50:11 +0000 (14:50 +0800)
committerYeting Kuo <yeting.kuo@sifive.com>
Thu, 23 Feb 2023 05:58:21 +0000 (13:58 +0800)
commit419948fe6708021524f86e15d755719d634ab8d2
tree011c5b21ea98a1ad7b56a9a43d16d180f4996a53
parent08a09235b6fbabfc1e13e7ec37d43bc660100d4a
[VP] Reorder is_int_min_poison/is_zero_poison operand before mask for vp.abs/ctlz/cttz.

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

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D144536
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