search for: _loopbody_

Displaying 1 result from an estimated 1 matches for "_loopbody_".

2010 Aug 26
2
[LLVMdev] analysis and transformation of Machine IRs
...nch instruction or the instruction that sets the condition code for the branch 2) the instruction that defines the value uses an operand defined by a phi instruction 3) the phi instruction uses the value For example, in the code below which loops n times, (begin) ... (I0) v3 := n (I1) v0 := 0 ... _LoopBody_: (I2) v1 := phi(v0, v2) ... (I3) v2 := v1 + 1 ... (I4) cmp v2, v3 (I5) brne _Loopbody_ ... (end) v2 is the induction variable because, 1) v2 is an operand of I4 2) I3 uses v1, which is defined by a phi instruction 3) the phi instruction I2 uses v2 Is there a better way to do what I am trying to d...