------- Comment #15 from steven at gcc dot gnu dot org 2008-12-15 17:38 ------- Re. comment #14: Yes, I suppose so. Why do you want to remove gcse-las from mainline. Not that I'm against it -- ideally RTL gcse.c would not work on memory at all anymore -- but I wouldn't remove gcse-las until we catch in the GIMPLE optimizers as much as possible of the things we still need gcse-las for.
It seems to me, btw, that it might be easier to teach GIMPLE loop invariant code motion about this transformation. Adding this in GIMPLE PRE might be a little too expensive...? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38401