[PATCH] D48430: [RISCV] Add support for lowering jumptables

Kito Cheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 4 00:26:28 PDT 2018


kito-cheng added a comment.
Herald added subscribers: jocewei, PkmX, rkruppe.

GCC using 5 as threshold to decide using jump table or not for RISC-V and LLVM using 4.

Reference:
GCC: https://github.com/gcc-mirror/gcc/blob/master/gcc/targhooks.c#L1628

- Note: targetm.have_casesi ()  return false for RISC-V.

LLVM: https://github.com/llvm-mirror/llvm/blob/master/lib/CodeGen/TargetLoweringBase.cpp#L72


https://reviews.llvm.org/D48430





More information about the llvm-commits mailing list