Widen vp.select the same way as select and vselect.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I think the legalization itself is sound: just nits.
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp | ||
---|---|---|
4528 | Similar comment to D116400 really - rename this function? Though arguably a precedent has already been set here since SELECT and VSELECT were both already using this function. So I'm not sure. | |
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vselect-vp.ll | ||
7 | Maybe move this in between <4 x i8> and <8 x i8>? That way there's a progression of vector widths. | |
llvm/test/CodeGen/RISCV/rvv/vselect-vp.ll | ||
7 | Maybe move this in between <vscale x 8 x i8> and <vscale x 16 x i8>? |
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp | ||
---|---|---|
4566–4569 | Check the opcode and avoid the bool and merge the switch cases. |
Similar comment to D116400 really - rename this function? Though arguably a precedent has already been set here since SELECT and VSELECT were both already using this function. So I'm not sure.