------- Comment #137 from rguenth at gcc dot gnu dot org 2007-05-23 20:46 ------- Created an attachment (id=13607) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13607&action=view) patch to perserve store ordering in loop load/store motion
<quote> Gaby's claim is that given an arbitrary pointer "p", saying: (int *)p = 3; is the same as saying: *(new (p) int) = 3; That makes life for the optimizers much, much harder. </quote> I say so as well (that those are the same), but I don't agree that this makes life for optimizers much harder. Anyway, this is a proposed patch for loop load/store motion that fixes the last posted testcase. Scheduling issues remain. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29286