UnrollWalker

Unroll loop if possible.

Members

Functions

walker
void walker(elem* e)

Walk e in execution order, fixing it according to state. state == 0: when rdinc is found, remove it, advance to state 1 state == 1: continue, replacing instances of v with v+increment, when second rdinc is found, advance to state 2 state == 2: continue

Variables

defnum
uint defnum;
Undocumented in source.
increment
targ_llong increment;
Undocumented in source.
state
int state;
Undocumented in source.
v
Symbol* v;
Undocumented in source.

Return Value

true if loop was unrolled

Meta