search for: array_x

Displaying 7 results from an estimated 7 matches for "array_x".

Did you mean: array_t
2015 Aug 20
2
loop unrolling introduces conditional branch
Hi, I want to use loop unrolling pass, however, I find that loop unrolling will introduces conditional branch at end of every "unrolled" part. For example, consider the following code *void foo( int n, int array_x[])* *{* * for (int i=0; i < n; i++)* * array_x[i] = i; * *}* Then I use this command "opt-3.5 try.bc -mem2reg -loops -loop-simplify -loop-rotate -lcssa -indvars -loop-unroll -unroll-count=3 -simplifycfg -S", it gives me this IR: *define void @_Z3fooiPi(i32 %n, i32* %array_x) #...
2015 Aug 22
3
loop unrolling introduces conditional branch
Hi, Mehdi, For example, I have this very simple source code: void foo( int n, int array_x[]) { for (int i=0; i < n; i++) array_x[i] = i; } After I use "clang -emit-llvm -o bc_from_clang.bc -c try.cc", I get bc_from_clang.bc. With my code (using LLVM IRbuilder API), I get bc_from_api.bc. Attachment please find thse two files. I also past the IR here. ****************...
2015 Aug 20
2
loop unrolling introduces conditional branch
...07:38 AM, Xiangyang Guo via llvm-dev wrote: > > Hi, > > I want to use loop unrolling pass, however, I find that loop unrolling > will introduces conditional branch at end of every "unrolled" part. For > example, consider the following code > > *void foo( int n, int array_x[])* > *{* > * for (int i=0; i < n; i++)* > * array_x[i] = i; * > *}* > > Then I use this command "opt-3.5 try.bc -mem2reg -loops -loop-simplify > -loop-rotate -lcssa -indvars -loop-unroll -unroll-count=3 -simplifycfg -S", > it gives me this IR: > >...
2015 Aug 22
2
loop unrolling introduces conditional branch
...fore -loop-unroll? On Sat, Aug 22, 2015 at 11:36 AM, Mehdi Amini <mehdi.amini at apple.com> wrote: > > On Aug 22, 2015, at 7:27 AM, Xiangyang Guo <xguo6 at ncsu.edu> wrote: > > Hi, Mehdi, > > For example, I have this very simple source code: > void foo( int n, int array_x[]) > { > for (int i=0; i < n; i++) > array_x[i] = i; > } > > After I use "clang -emit-llvm -o bc_from_clang.bc -c try.cc", I get > bc_from_clang.bc. With my code (using LLVM IRbuilder API), I get > bc_from_api.bc. Attachment please find thse two files. I...
2015 Aug 21
2
loop unrolling introduces conditional branch
...;> Hi, >>> >>> I want to use loop unrolling pass, however, I find that loop unrolling >>> will introduces conditional branch at end of every "unrolled" part. For >>> example, consider the following code >>> >>> *void foo( int n, int array_x[])* >>> *{* >>> * for (int i=0; i < n; i++)* >>> * array_x[i] = i; * >>> *}* >>> >>> Then I use this command "opt-3.5 try.bc -mem2reg -loops -loop-simplify >>> -loop-rotate -lcssa -indvars -loop-unroll -unroll-count=3 -si...
2015 Aug 22
2
loop unrolling introduces conditional branch
...gt; I want to use loop unrolling pass, however, I find that loop unrolling >>>>> will introduces conditional branch at end of every "unrolled" part. For >>>>> example, consider the following code >>>>> >>>>> *void foo( int n, int array_x[])* >>>>> *{* >>>>> * for (int i=0; i < n; i++)* >>>>> * array_x[i] = i; * >>>>> *}* >>>>> >>>>> Then I use this command "opt-3.5 try.bc -mem2reg -loops -loop-simplify >>>>> -loop...
2010 May 18
4
scaling with relative units in plots or retrieving axes limits in plots
Dears, a way to define x and y positions in plots in relative numbers (e.g in fractions between 0 and 1 referring to relative positions inside the plot region) would really help me. One example I would need this to would be to add text via text() to a plot always at a defined spot, e.g the upper left corner. Until now I always determined maximum x and y values and used those, but defining