[PATCH] D34409: Use 64bit jump table with large code model on 64bit

Joerg Sonnenberger via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 20 15:03:34 PDT 2017


joerg added a comment.

The x86_64 code is mixed: it is correct for non-PIC but large, it doesn't work correctly for PIC. That covers the cases most people have been interested in, especially since large model and PIC runs into various other issues too from what I remember.

It would be really nice to use the proper 32bit difference for PIC in general. It would be a stepping stone to using 8bit or 16bit labels for smaller functions. But I run out of time banging my head against the lowering when I last looked at it.


https://reviews.llvm.org/D34409





More information about the llvm-commits mailing list