[PATCH] D26018: Function-relative jump-table encoding
Joerg Sonnenberger via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 29 13:04:33 PDT 2016
joerg added a comment.
I think I can implement the selection of the jump table encoding as fixup pass on x86. The biggest concern here is that at least for x86_64, the funcbase-difference jump table encodings require one more register. For 32bit mode, that's not a concern as the address computation can be folded with lea into a single operation. So being able to use 16bit encodings for the jump table would imply an additional scratch register to be used, even if the function turns out to be too large. I'm not sure how much that really matters though.
Repository:
rL LLVM
https://reviews.llvm.org/D26018
More information about the llvm-commits
mailing list