search for: vectorizable_elements

Displaying 3 results from an estimated 3 matches for "vectorizable_elements".

2016 Oct 13
2
Loop Unrolling Fail in Simple Vectorized loop
Thanks for the explanation. But I am a little confused with the following fact. Can't LLVM keep vectorizable_elements as a symbolic value and convert the loop to say; for(unsigned i = 0; i < vectorizable_elements ; i += 2){ //main loop } for(unsigned i=0 ; i < vectorizable_elements % 2; i++){ //fix up } Why does it have to reason about the range of vectorizable_elements? Even if vectorizable_eleme...
2016 Oct 13
2
Loop Unrolling Fail in Simple Vectorized loop
...uot;, can't the unroller > compute it as (- 1 + %count / 4)? > > On Wed, Oct 12, 2016 at 11:28 PM, Charith Mendis < > char.mendis1989 at gmail.com> wrote: > >> Thanks for the explanation. But I am a little confused with the following >> fact. Can't LLVM keep vectorizable_elements as a symbolic value and convert >> the loop to say; >> >> for(unsigned i = 0; i < vectorizable_elements ; i += 2){ >> //main loop >> } >> >> for(unsigned i=0 ; i < vectorizable_elements % 2; i++){ >> //fix up >> } >> >>...
2016 Oct 12
2
Loop Unrolling Fail in Simple Vectorized loop
Hi all, Attached herewith is a simple vectorized function with loops performing a simple shuffle. I want all loops (inner and outer) to be unrolled by 2 and as such used -unroll-count=2 The inner loops(with k as the induction variable and having constant trip counts) unroll fully, but the outer loop with (j) fails to unroll. The llvm code is also attached with inner loops fully unrolled. To