[PATCH] D9009: Value profiling compiler-rt changes

Betul Buyukkurt via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 15 13:22:41 PST 2015


>
> Hi David,
>
> Alignment is set to be 8 bytes for the ProfileData struct elements in
> lib/Transforms/Instrumentation/InstrProfiling.cpp through the line:
>
>  Data->setAlignment(8);
>
> I also checked the size of the ProfileData struct during raw test file
> updates. It came up to be 40 bytes i.e. assigning 6 bytes of padding to
> the 34 byte actual ProfileData struct size on a 32 byte architectures.

Typo: 32-byte ==> 32-bit above.

>
> I just got my commit rights. I'll merge the patches once I have an LGTM on
> them.
>
> -Betul
>
>> This may not be true for 32 bit target.
>>
>> David
>>
>> On Sun, Nov 15, 2015 at 6:23 AM, Betul Buyukkurt <betulb at codeaurora.org
>> <mailto:betulb at codeaurora.org> > wrote:
>>
>>
>> betulb updated this revision to Diff 40236.
>> betulb added a comment.
>>
>> In this revision:
>>
>> - Removed padding computation after the Data section. It's not needed as
>> the
>> ProfileData struct is 8 byte aligned.
>>
>>
>>
>> http://reviews.llvm.org/D9009
>>
>> Files:
>>   lib/profile/InstrProfiling.c
>>   lib/profile/InstrProfiling.h
>>   lib/profile/InstrProfilingBuffer.c
>>   lib/profile/InstrProfilingFile.c
>>
>>
>>
>>
>>
>
>




More information about the llvm-commits mailing list