Displaying 6 results from an estimated 6 matches for "example1_vect".
2013 Apr 11
2
[LLVMdev] Decouple LoopVectorizer from O3
...gestion by changing the condition to :
189 if (LoopVectorize && OptLevel >= 0)
190 MPM.add(createLoopVectorizePass());
and compiled. Then I used the following command:
opt -mtriple=x86_64-linux-gnu -vectorize-loops
-vectorizer-min-trip-count=6 -debug-only=loop-vectorize -O1-S -o
example1_vect.s example1.s
where example1.s is IR generated by
clang -S -emit-llvm example1.c
example1.c contains the following loop:
for(int i=0;i<SIZE;i++)
{
aa[i] = bb[i] + count;
count++;
printf("a[%d] is %d", i,aa[i]);
}
LV ru...
2013 Apr 11
2
[LLVMdev] Decouple LoopVectorizer from O3
...;
> 189 if (LoopVectorize && OptLevel >= 0)
> 190 MPM.add(createLoopVectorizePass());
>
> and compiled. Then I used the following command:
>
> opt -mtriple=x86_64-linux-gnu -vectorize-loops
> -vectorizer-min-trip-count=6 -debug-only=loop-vectorize -O1-S -o
> example1_vect.s example1.s
>
> where example1.s is IR generated by
>
> clang -S -emit-llvm example1.c
>
> example1.c contains the following loop:
>
> for(int i=0;i<SIZE;i++)
> {
> aa[i] = bb[i] + count;
> count++;
> printf...
2013 Apr 11
0
[LLVMdev] Decouple LoopVectorizer from O3
...> 189 if (LoopVectorize && OptLevel >= 0)
> 190 MPM.add(createLoopVectorizePass());
>
> and compiled. Then I used the following command:
>
> opt -mtriple=x86_64-linux-gnu -vectorize-loops
> -vectorizer-min-trip-count=6 -debug-only=loop-vectorize -O1-S -o
> example1_vect.s example1.s
>
> where example1.s is IR generated by
>
> clang -S -emit-llvm example1.c
>
> example1.c contains the following loop:
>
> for(int i=0;i<SIZE;i++)
> {
> aa[i] = bb[i] + count;
> count++;
> pr...
2013 Apr 15
0
[LLVMdev] Decouple LoopVectorizer from O3
...;& OptLevel >= 0)
> > 190 MPM.add(createLoopVectorizePass());
> >
> > and compiled. Then I used the following command:
> >
> > opt -mtriple=x86_64-linux-gnu -vectorize-loops
> > -vectorizer-min-trip-count=6 -debug-only=loop-vectorize -O1-S -o
> > example1_vect.s example1.s
> >
> > where example1.s is IR generated by
> >
> > clang -S -emit-llvm example1.c
> >
> > example1.c contains the following loop:
> >
> > for(int i=0;i<SIZE;i++)
> > {
> > aa[i] = bb[i] + count;
>...
2013 Apr 11
0
[LLVMdev] Decouple LoopVectorizer from O3
Hi Anadi,
In the file PassManagerBuilder.cpp you can change the lines below to get rid of the O3 restriction.
189 if (LoopVectorize && OptLevel > 2)
190 MPM.add(createLoopVectorizePass());
Nadav
On Apr 10, 2013, at 5:39 PM, Anadi Mishra <reachanadi at gmail.com> wrote:
> Hello,
>
> I am trying out the LoopVectorizer(LV) pass and would like to decouple
2013 Apr 11
4
[LLVMdev] Decouple LoopVectorizer from O3
Hello,
I am trying out the LoopVectorizer(LV) pass and would like to decouple it
from O3 which is currently required to run LV. I want to do this because I
want to understand the behaviour of LV by trying simple loops but the O3
mostly optimises away the loop body.
Any ideas would be appreciated.
Best,
Anadi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: