[PATCH] D87286: AArch64: make sure jump table entries can reach entire image

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 14:41:44 PDT 2020


efriedma added a comment.

Instead of trying to make the table relative to the jump/adr, can we use the approach we use for compressed jump tables (using the address of the first destination as the base) unconditionally?  Seems less complicated overall.  I guess making it work in general costs one extra instruction in general: if you want to handle functions larger than the range of adr, you need to use adrp instead of adr.  But functions that large are rare, and the potential upside from duplicating jumptable jumps is pretty large.


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

https://reviews.llvm.org/D87286



More information about the llvm-commits mailing list