Displaying 4 results from an estimated 4 matches for "setgv".
Did you mean:
segv
2016 Aug 26
3
Use of array type in globals in LTO
...ot even start to handle them
because as of now it ignores fancy-aligned globals. 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, In...
2016 Aug 26
2
Use of array type in globals in LTO
...417 playing a role there.
>
> Anyway I don’t have Gold, so I’ll leave Teresa investigate why the change in behavior.
>
> 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();
>> }
>> -...
2016 Aug 26
2
Use of array type in globals in LTO
...hange in behavior.
>>>
>>> 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[]){...
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