search for: _z3fooipi

Displaying 6 results from an estimated 6 matches for "_z3fooipi".

Did you mean: _z3fooii
2015 Aug 22
3
loop unrolling introduces conditional branch
...*** Clang Generate IR Start *********************************************************** ; ModuleID = 'bc_from_clang.bc' target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" ; Function Attrs: nounwind uwtable define void @_Z3fooiPi(i32 %n, i32* %array_x) #0 { %1 = alloca i32, align 4 %2 = alloca i32*, align 8 %i = alloca i32, align 4 store i32 %n, i32* %1, align 4 store i32* %array_x, i32** %2, align 8 store i32 0, i32* %i, align 4 br label %3 ; <label>:3 ; preds = %1...
2015 Aug 22
2
loop unrolling introduces conditional branch
...********************************************************** > ; ModuleID = 'bc_from_clang.bc' > target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" > target triple = "x86_64-unknown-linux-gnu" > > ; Function Attrs: nounwind uwtable > define void @_Z3fooiPi(i32 %n, i32* %array_x) #0 { > %1 = alloca i32, align 4 > %2 = alloca i32*, align 8 > %i = alloca i32, align 4 > store i32 %n, i32* %1, align 4 > store i32* %array_x, i32** %2, align 8 > store i32 0, i32* %i, align 4 > br label %3 > > ; <label>:3...
2015 Aug 22
2
loop unrolling introduces conditional branch
...t; >>>>> 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) #0 {* >>>>> * %1 = icmp slt i32 0, %n* >>>>> * br i1 %1, label %.lr.ph <http://lr.ph/>, label %._crit_edge* >>>>> >>>>> *.lr.ph <http://lr.ph/>: ; >>>&...
2015 Aug 20
2
loop unrolling introduces conditional branch
...ode *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) #0 {* * %1 = icmp slt i32 0, %n* * br i1 %1, label %.lr.ph <http://lr.ph/>, label %._crit_edge* *.lr.ph <http://lr.ph/>: ; preds = %0, %7* * %indvars.iv = phi i64 [ %indvars.iv.next.2, %7 ], [ 0, %0 ]* * %2 = geteleme...
2015 Aug 20
2
loop unrolling introduces conditional branch
...> * 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) #0 {* > * %1 = icmp slt i32 0, %n* > * br i1 %1, label %.lr.ph <http://lr.ph/>, label %._crit_edge* > > *.lr.ph <http://lr.ph/>: ; preds > = %0, %7* > * %indvars.iv = phi i64 [ %indvars.iv.next.2, %7 ]...
2015 Aug 21
2
loop unrolling introduces conditional branch
..._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) #0 {* >>> * %1 = icmp slt i32 0, %n* >>> * br i1 %1, label %.lr.ph <http://lr.ph/>, label %._crit_edge* >>> >>> *.lr.ph <http://lr.ph/>: ; >>> preds = %0, %7* >>> *...