Displaying 2 results from an estimated 2 matches for "clc_var".
2015 Jul 21
2
[LLVMdev] Loop localize global variables
...inside loops so
that it can be allocated into registers. For example, transform the
following sequence
static int gbl_var;
void foo() {
for () {
...access gbl_var...
}
}
into something like
static int gbl_var;
void foo() {
int lcl_var;
lcl_var = gbl_var;
for () {
...access clc_var...
}
gbl_var = lcl_var;
}
This transformation helps a couple of EEMBC benchmarks on both Aarch64 and
Hexagon backends. I was wondering if there is interest to get this
optimization upstreamed or if there is a better way of doing this.
Thanks,
Sundeep
Qualcomm Innovation Center, Inc. is a me...
2015 Jul 21
2
[LLVMdev] Loop localize global variables
...t;>
>> for () {
>> ...access gbl_var...
>> }
>>
>> }
>>
>> into something like
>>
>> static int gbl_var;
>> void foo() {
>> int lcl_var;
>>
>> lcl_var = gbl_var;
>> for () {
>> ...access clc_var...
>> }
>> gbl_var = lcl_var;
>>
>> }
>>
>> This transformation helps a couple of EEMBC benchmarks on both Aarch64 and
>> Hexagon backends. I was wondering if there is interest to get this
>> optimization upstreamed or if there is a better way of...