[PATCH] D32564: AArch64: compress jump tables to minimum size needed to reach destinations

Joerg Sonnenberger via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 27 05:51:56 PDT 2017


joerg added a comment.

My primary concern here is that it can make it impossible to hand-patch the resulting assembler. I'm not sure if anyone is doing that, but if I have learned one lesson from pkgsrc development and the set of Linux support patches, it is to expect "yes, someone is really doing" as most likely answer. As such, I would hope for some global option to disable the pass.

About putting the jump table into a separate section: that's kind of what GCC is doing. I don't think a jump table has necessarily only one user, but placing it inside the function still looks helpful. That wouldn't conflict with -ffunction-sections or so either.


Repository:
  rL LLVM

https://reviews.llvm.org/D32564





More information about the llvm-commits mailing list