------- Comment #5 from pinskia at gcc dot gnu dot org 2007-03-26 18:09 ------- > I would agree, if we had RA capable of that (which I am not quite sure > whether we do or not, although this seems simple enough), or better, > RA doing better job under high register pressure.
Then how do you explain why loop.c pulled this out of the loop but the new rtl loop invariant does not? I don't see why we should care about register pressure except inside the RA. Every other compiler does it that way, plus they work better than GCC. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31360