Displaying 5 results from an estimated 5 matches for "getstartloc".
2016 Feb 03
3
Particular type of loop optimization
...ke a look:
int foo1 (int *a, int *b, int n) {
int i, s= 0;
for (i = 0; i < n; i++) {
s = s * a[i];
}
for (i = 0; i < n; i++) {
b[i] = a[i] + 3;
s += a[i];
}
return s;
}
In this case, using the line obtained by this one in the LLVM's IR:
Line = l->getStartLoc().getLine();
The source file is cloned, and I'm writing my annotations inside the loop
now.
I can't do several modifications in the struct of code, just the necessary,
thats the problem.
Regards,
Gleison
2016-02-03 1:07 GMT-02:00 Mehdi Amini <mehdi.amini at apple.com>:
>
&...
2016 Feb 03
2
Particular type of loop optimization
...t; for (i = 0; i < n; i++) {
>>
>> b[i] = a[i] + 3;
>>
>> s += a[i];
>>
>> }
>>
>> return s;
>>
>> }
>>
>> In this case, using the line obtained by this one in the LLVM's IR:
>>
>> Line = l->getStartLoc().getLine();
>>
>> The source file is cloned, and I'm writing my annotations inside the loop
>> now.
>> I can't do several modifications in the struct of code, just the
>> necessary, thats the problem.
>>
>> Regards,
>>
>> Gleison
&g...
2016 Jun 04
4
[LLVMdev] LLVM loop vectorizer
Hi Alex,
I think the changes you want are actually not vectorizer related. Vectorizer just uses data provided by other passes.
What you probably might want is to look into routine Loop::getStartLoc() (see lib/Analysis/LoopInfo.cpp). If you find a way to improve it, patches are welcome:)
Thanks,
Michael
> On Jun 3, 2016, at 6:13 PM, Alex Susu <alex.e.susu at gmail.com> wrote:
>
> Hello.
> Mikhail, I come back to this older thread.
> I need to do a few changes to...
2016 Feb 02
5
Particular type of loop optimization
Dear LLVMers,
I am trying to implement a particular type of loop optimization, but I
am having problems with global variables. To solve this problem, I would
like to know if LLVM has some pass that moves loads outside loops. I will
illustrate with an example. I want to transform this code below. I am
writing in C for readability, but I am analysing LLVM IR:
int *vectorE;
void foo (int n) {
2016 Feb 18
3
[LLVMdev] LLVM loop vectorizer
Hi Alex,
I'm not aware of efforts on loop coalescing in LLVM, but probably polly can do something like this. Also, one related thought: it might be worth making it a separate pass, not a part of loop vectorizer. LLVM already has several 'utility' passes (e.g. loop rotation), which primarily aims at enabling other passes.
Thanks,
Michael
> On Feb 15, 2016, at 6:44 AM, RCU