[PATCH] D15635: AsmPrinter: Produce PC-relative cstexprs when possible.

Bruno Cardoso Lopes via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 20 11:44:18 PST 2016


> 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.


-- 
Bruno Cardoso Lopes
http://www.brunocardoso.cc


More information about the llvm-commits mailing list