On Mon, Mar 16, 2009 at 2:52 PM, Ramana Radhakrishnan <ramana.radhakrish...@arm.com> wrote: > Wouldn't doing this in CSE only solve the problem within an extended basic > block and not necessarily across the program ? Surely you'd want to do it > globally or am I missing something very basic here ?
Why so serious^Wsurely? I think doing this optimization over extended basic blocks would catch 90% of the cases. The loop-carried form is covered by auto-increment generation (and yes I know that pass also needs to be improved ;-) Ciao! Steven