[LLVMdev] Emitting .zero
David A. Greene
dag at cray.com
Thu Sep 16 17:59:14 PDT 2010
Chris Lattner <clattner at apple.com> writes:
> On Sep 16, 2010, at 5:12 PM, David Greene wrote:
>
>> With LLVM 2.7, I see very inefficient emitting of zeros in .s files:
>> But maybe it's fixed in 2.8 or something.
>
> It's not fixed in 2.8, it sounds like it's simple code in AsmPrinter
> when emitting a ConstantStruct or something. A simple testcase would
> be helpful.
I have some 2.7 code to fix this now. Pretty easy fix. As a bonus it
will aggregate all integer values, not just zero, but I don't think
MCAsmStreamer currently optimizes that. I'll upstream it ASAP along
with a testcase.
-Dave
More information about the llvm-dev
mailing list