[PATCH] D15635: AsmPrinter: Produce PC-relative cstexprs when possible.
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 20 11:47:21 PST 2016
On 20 January 2016 at 14:44, Bruno Cardoso Lopes
<bruno.cardoso at gmail.com> wrote:
>> Right now I cannot remember why the GOT-like optimization is done
>> during asm printing. I remember it is an optimization to avoid having
>> to add a feature to the IR, but I cannot remember why it was not
>> implemented directly in MC. Bruno, do you remember?
>
> AFAIR we need to skip the emission of the original "proxy" globals in
> case the GOT-like optimization kicked in. Not sure if it still holds
> but AsmPrinter was the only place we could do it.
Sounds reasonable. Dropping something from the output in MC would be hard.
Thanks,
Rafael
More information about the llvm-commits
mailing list