Displaying 5 results from an estimated 5 matches for "r278338".
2016 Aug 26
3
Use of array type in globals in LTO
...rged
>>>> in global-merge pass and in some global variable, array types are
>>>> used instead of its original type. For example, [4xi8] with align 4
>>>> is used for a i32 global variable. For me, it seems that such
>>>> pattern is observed after r278338 (Resolution-based LTO API).
>>> Are you sure it is performed in the global merge pass? Can you
>>> provide
>>> an example of input IR where you see this now but didn’t before?
>>> Also can you confirm you’re using the gold-linker?
>>
>> I used gold...
2016 Aug 26
2
Use of array type in globals in LTO
Thanks for the test case! I can reproduce this, and see with the
compiler I saved from just before r278338 that this is indeed a chance
in behavior. Looking at why this changed...
On Fri, Aug 26, 2016 at 1:42 PM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
>> On Aug 26, 2016, at 1:34 PM, junbuml at codeaurora.org wrote:
>>
>> On 2016-08-26 12:47, Mehdi Amini wrote:
>&g...
2016 Aug 26
2
Use of array type in globals in LTO
...> recorded merged common size. So
> the original i32 type does not look the same (since it compares
> against [4 x i8]).
Right, but that the code I wrote in r279417 right? I guess we should compare the *size* first, and only do something if the size differs.
How was Gold doing it before r278338?
—
Mehdi
>
> Not that familiar with type handling in LLVM, but I guess I need to
> just check if the type size is the same?
>
> On Fri, Aug 26, 2016 at 1:57 PM, Teresa Johnson <tejohnson at google.com> wrote:
>> Thanks for the test case! I can reproduce this, and...
2016 Aug 26
2
Use of array type in globals in LTO
...umber of global variables are merged in
>> global-merge pass and in some global variable, array types are used
>> instead of its original type. For example, [4xi8] with align 4 is used
>> for a i32 global variable. For me, it seems that such pattern is
>> observed after r278338 (Resolution-based LTO API).
>
> Are you sure it is performed in the global merge pass? Can you provide
> an example of input IR where you see this now but didn’t before?
> Also can you confirm you’re using the gold-linker?
I used gold linker. In spec2006/perlbench, I observed the les...
2016 Aug 26
2
Use of array type in globals in LTO
Hi,
Recently, I noticed that less number of global variables are merged in
global-merge pass and in some global variable, array types are used
instead of its original type. For example, [4xi8] with align 4 is used
for a i32 global variable. For me, it seems that such pattern is
observed after r278338 (Resolution-based LTO API). Can anyone give me
little bit more insight if such type change was intended? If then why
such uses of array type is needed?
Thanks,
Jun
--
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm
Technologies, Inc.
Qualcomm Technologies, Inc. is a member...