[PATCH] D50634: [RISCV] Add support for local PIC addressing

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 29 11:35:50 PDT 2018


efriedma added a comment.

If I'm understanding correctly, the problem here is that the lui has to have the address of the auipc as a parameter.

Instead of using the basic block's label to compute the address of the auipc, could you assign a unique ID to each auipc, and convert that ID to a label in the AsmPrinter?  That seems more robust dealing with MI optimizations.


https://reviews.llvm.org/D50634





More information about the llvm-commits mailing list