[PATCH] D92097: [RISCV] Basic jump table lowering
Sam Elliott via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 26 05:09:14 PST 2020
lenary added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:265
- // Effectively disable jump table generation.
- setMinimumJumpTableEntries(INT_MAX);
-
----------------
Let's make sure this doesn't have a major code size impact. I'm not sure the threshold GCC uses, something like 3 IIRC?
The problem for code size is that the sequence to hold the jump table and the calculate the jump index is longer than a chain of ifs, if there aren't too many entries.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92097/new/
https://reviews.llvm.org/D92097
More information about the llvm-commits
mailing list