This is kind of hard to review properly, but I like the idea, I don't think the patch is making anything worse, and I'm going to trust that you didn't accidentally delete any important optimisation passes :-). So the patch is OK. -- - Geoffrey Keating <geoffk@geoffk.org>