[LLVMdev] Contants generation - proposal
Tim Northover
t.p.northover at gmail.com
Tue Jun 25 13:30:42 PDT 2013
Hi Elena,
> (2) Proposal
> Define one more Code Model, let's say "LargeNearConst", which will allow to put constants in .text.
Isn't that a little heavy-handed? The large model only requires the
less efficient access for symbols we can't control, and in fact x86
still uses pc-relative conditional branches within a function so it
can't pretend to support a single function >2GB in code size even now.
I think that the improved behaviour for consts should be acceptable in
the large model. But that's just me.
> I'd like to hear people's opinion. Will it help other targets? I'm ready to send a patch.
An analogous improvement would be useful for AArch64, which means that
if the new model *is* justified it would probably be useful there too.
Cheers.
Tim.
More information about the llvm-dev
mailing list