Widen vp.select the same way as select and vselect.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
70 ms | x64 debian > LLVM.Bindings/Go::go.test |
Event Timeline
I think the legalization itself is sound: just nits.
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp | ||
---|---|---|
4530 | 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 | ||
---|---|---|
4568–4571 | Check the opcode and avoid the bool and merge the switch cases. |
clang-format not found in user’s local PATH; not linting file.