[VP] Condition in vp.select|merge not a VP mask
authorSimon Moll <simon.moll@emea.nec.com>
Tue, 15 Feb 2022 17:17:54 +0000 (18:17 +0100)
committerSimon Moll <simon.moll@emea.nec.com>
Tue, 15 Feb 2022 17:18:08 +0000 (18:18 +0100)
commitacc55adbc1f6fbe93735afb9115214c4fe495bcb
treeb3aca1b3aa965b9d721ab9ca634644d0fb8213dd
parent03e83cc8eb9be1f65ed27c07efb839c9d080411a
[VP] Condition in vp.select|merge not a VP mask

vp.select|merge both select lanes based on a condition mask.  Unlike
other VP intrinsics the lanes are defined where the condition mask is
false. Hence, the condition mask in vp.select|mask is not a mask in the
sense of VP intrinsics.  By doing not treating the condition mask
specially, vp.select becomes the canonical VP translation of the select
instruction.

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D118981
llvm/include/llvm/IR/VPIntrinsics.def