On Wed, Mar 20, 2013 at 12:20:27PM +0100, Richard Biener wrote: > Walking the SSA def chain would also be possible - preferably from > cfgexpand.c when we process the stmt. But you'll eventually lose > debug info like for > > int i = 1; > __builtin_foo (i); > > when we then never expand the SSA name def i_2 = 1 because we are > never visiting its use ...
If i is a user variable, then for -O0 we'd better create a memory slot for it and expand the i = 1 store as store to that memory location. Jakub