search for: loopentry

Displaying 5 results from an estimated 5 matches for "loopentry".

2012 Aug 20
0
[LLVMdev] Problem with "Does not dominate all uses"
...cond.true and cond.false, both of which branch unconditionally to cond.end. Therefore %6 dominates its use. In your second file %18 is defined in end.11 and used in cond.end. However, end.11 no longer dominates cond.end because you have rewritten all branches to go through the switch statement in loopEntry, and it is possible to take the path from entry to loopEntry to cond.end without going through end.11. Cameron On Aug 20, 2012, at 6:24 AM, Rinaldini Julien <julien.rinaldini at heig-vd.ch> wrote: > Hi! > > I'm having some trouble with a pass I'm writing. > > I'...
2012 Aug 20
3
[LLVMdev] Problem with "Does not dominate all uses"
...key13, i32 0, i32 0, !dbg !322 call void @Safer_Expand_Userkey(i8* %6, i8* %7, i32 %cond.reload, i32 0, i8* %arraydecay), !dbg !322 store i32 0, i32* %retval, !dbg !323 br label %return, !dbg !323 are the same in the second file: if.end11: ; preds = %loopEntry %18 = load i8** %key.addr, align 8, !dbg !322 %19 = load i8** %key.addr, align 8, !dbg !322 ... cond.end:...
2005 Jul 29
1
[LLVMdev] help with pointer-to-array conversion
OK, thanks Chris, I've found that running opt -loopsimplify -instcombine -indvars -stats gives me the setup I need for this transformation, and a small patch makes it happen in the simple case we discussed. However, I'm having some trouble when things get a bit more complicated with 3 nesting levels: int A[3000000], B[20000], C[100], Z; int main() { int i, j, k, *a, *b,
2005 Feb 02
1
[LLVMdev] RE: Question about Global Variable
...izer, i.e. "test str" pGVars[0] = gStrA; pGVars[1] = gStrB; // change the content of gStrA for(i=0;i<5;i++){ pGVars[0][i] ^= 0x27; } } the following IR code is the loop part code which is corresponding to the above C code no_exit: ; preds = %loopentry %tmp.31 = getelementptr [3 x sbyte*]* %pGVars, int 0, int 0 ; <sbyte**> [#uses=1] %tmp.32 = load sbyte** %tmp.31 ; <sbyte*> [#uses=1] %tmp.33 = load int* %i ; <int> [#uses=1] %tmp.34 = getelementptr sbyte* %tmp.32, in...
2003 Nov 01
0
[LLVMdev] Cute profiling toy for LLVM
...t/em3d.llvm.bc <all of the stuff from before> ===-------------------------------------------------------------------------=== Top 20 most frequently executed basic blocks: ## %% Frequency 1. 4.60% 393/8545 make_neighbors() - no_exit.2 2. 4.56% 390/8545 make_neighbors() - loopentry.2 3. 4.56% 390/8545 make_neighbors() - endif.1 4. 4.56% 390/8545 make_neighbors() - endif.2 5. 4.56% 390/8545 make_neighbors() - loopexit.3 6. 4.56% 390/8545 check_percent() - entry 7. 4.53% 387/8545 make_neighbors() - endif.3 8. 4.49% 384/8545 fill_from_fields()...