Closed GoogleCodeExporter closed 8 years ago
The part about g_x (constant globals, both scalars and arrays)
is implemented in LLVM r154444.
Gives ~1.5% static instruction saving.
I don't think you are right about m_x and l_x.
In both cases the data can be const_casted and written to.
Even if not, I see no way to check the constantness of these two in LLVM.
Closing. Please reopen if you think I am wrong.
Original comment by konstant...@gmail.com
on 10 Apr 2012 at 10:35
> In both cases the data can be const_casted and written to.
They can't (mutable struct Foo aside).
> I see no way to check the constantness of these two in LLVM.
It's a pity.
Original comment by dvyu...@google.com
on 11 Apr 2012 at 7:25
Original issue reported on code.google.com by
dvyu...@google.com
on 2 Apr 2012 at 11:51