Displaying 4 results from an estimated 4 matches for "loadgv".
Did you mean:
loadgs
2016 Aug 26
3
Use of array type in globals in LTO
...Before r278338,
GVi32_a and GVi32_b seems to be i32 in the input IR to GlobalMerge. Is
this change in the input IR expected ?
-------------------------
int GVi32_a ;
int GVi32_b ;
__attribute__((noinline)) void setGV(int a) {
GVi32_a = a ;
GVi32_b = a ;
}
__attribute__((noinline)) int loadGV() {
return GVi32_a + GVi32_b ;
}
int main(int argc, char *argv[]){
setGV(argc);
return loadGV();
}
-------------------------
>
>
>
> —
> Mehdi
--
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm
Technologies, Inc.
Qualcomm Technologies, Inc. is a...
2016 Aug 26
2
Use of array type in globals in LTO
...>
> Do you want to try improving global merge to try to handle this case?
>
> —
> Mehdi
>
>
>
>
>
>>
>> __attribute__((noinline)) void setGV(int a) {
>> GVi32_a = a ;
>> GVi32_b = a ;
>> }
>>
>> __attribute__((noinline)) int loadGV() {
>> return GVi32_a + GVi32_b ;
>> }
>>
>> int main(int argc, char *argv[]){
>> setGV(argc);
>> return loadGV();
>> }
>> -------------------------
>>
>>
>>
>>> —
>>> Mehdi
>>
>> --
>> Qualcom...
2016 Aug 26
2
Use of array type in globals in LTO
...di
>>>
>>>
>>>
>>>
>>>
>>>>
>>>> __attribute__((noinline)) void setGV(int a) {
>>>> GVi32_a = a ;
>>>> GVi32_b = a ;
>>>> }
>>>>
>>>> __attribute__((noinline)) int loadGV() {
>>>> return GVi32_a + GVi32_b ;
>>>> }
>>>>
>>>> int main(int argc, char *argv[]){
>>>> setGV(argc);
>>>> return loadGV();
>>>> }
>>>> -------------------------
>>>>
>>>>...
2016 Aug 26
2
Use of array type in globals in LTO
On 2016-08-26 11:32, Mehdi Amini wrote:
> 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