[PATCH] D116435: [RISCV] Generate 32 bits jumptable entries when code model is small

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 6 07:56:01 PST 2022


jrtc27 added a comment.

AArch64 does even better and has a PC-relative jump table lowering whose element size depends on how big your switch is, not the code model in use. Ideally this would be made target-independent, or at least copied to rISC-V. That'd let you have small entries even for medany RV64.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116435/new/

https://reviews.llvm.org/D116435



More information about the llvm-commits mailing list