This patch extends the support for vector FP_ROUND and FP_EXTEND by
including support for fixed-length vector types. Since fixed-length
vectors use "VL" nodes and scalable vectors can use the standard nodes,
there is slightly more to do in the fixed-length case. A helper function
was introduced to try and reduce the divergent paths. It is expected
that this function will similarly come in useful for lowering the
int-to-fp and fp-to-int operations for fixed-length vectors.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/RISCV/RISCVISelLowering.h | ||
---|---|---|
181 | I doubt we need that TRUNC operand. I think its use in the regular node is for scalar call arguments. |
Comment Actions
- remove TRUNC operand from FP_ROUND_VL and simplify accordingly
llvm/lib/Target/RISCV/RISCVISelLowering.h | ||
---|---|---|
181 | Fair enough. I was trying to match the standard node in case we ever wanted to use the same logic to process the two together without having to conditionally change operand indices. I'll get rid of it. |
I doubt we need that TRUNC operand. I think its use in the regular node is for scalar call arguments.