GPR uses argument registers as the first group of registers to allocate.
This patch uses vector argument registers, v8 to v23, as the first group
to allocate.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/RISCV/RISCVRegisterInfo.td | ||
---|---|---|
506 | https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/Target/Target.td#L329 Seems like sequence have optional 4th argument for stride, so this could be simplified to (add (sequence "V%uM2", 8, 31, 2), (sequence "V%uM2", 0, 7, 2)), 2>; |
Comment Actions
Yes. Starting with v25 is also strange. It should be an 8x number for LMUL may be 8. To be consistent with GPR to start with argument registers may be a way to go.
https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/Target/Target.td#L329
Seems like sequence have optional 4th argument for stride, so this could be simplified to