[lld] r226693 - Fix slow test.

Shankar Easwaran shankare at codeaurora.org
Mon Jan 26 10:34:16 PST 2015


You can omit writing 0's only if the section type is SHT_NOBITS.

On 1/24/2015 7:44 AM, Sean Silva wrote:
> I assume this due to yaml2obj naively generating a section full of 0's
> instead of omitting all the 0's. Maybe the attached patch makes sense?
>
> -- Sean Silva
>
> On Wed, Jan 21, 2015 at 7:15 PM, Rui Ueyama <ruiu at google.com> wrote:
>
>> Author: ruiu
>> Date: Wed Jan 21 13:15:56 2015
>> New Revision: 226693
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=226693&view=rev
>> Log:
>> Fix slow test.
>>
>> yaml2obj command ran by this test took more than 15 seconds to finish
>> because of extremely large .bss section. Other tests only takes 3 seconds.
>> Reduce the size to make it faster.
>>
>> Modified:
>>      lld/trunk/test/elf/sh_addralign.test
>>
>> Modified: lld/trunk/test/elf/sh_addralign.test
>> URL:
>> http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/sh_addralign.test?rev=226693&r1=226692&r2=226693&view=diff
>>
>> ==============================================================================
>> --- lld/trunk/test/elf/sh_addralign.test (original)
>> +++ lld/trunk/test/elf/sh_addralign.test Wed Jan 21 13:15:56 2015
>> @@ -23,7 +23,7 @@ Sections:
>>     Flags:           [ SHF_WRITE, SHF_ALLOC ]
>>     AddressAlign:    1
>>     Content:         ''
>> -  Size:            0x80000000
>> +  Size:            0x1000
>>   - Name: .data
>>     Type: SHT_PROGBITS
>>     Content: ''
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150126/14268b52/attachment.html>


More information about the llvm-commits mailing list