http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46265
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2010.11.02 10:24:04 Ever Confirmed|0 |1 --- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-02 10:24:04 UTC --- Well, PRE manages to not optimize the addition because of the missing availability of *gp in BB2 (the dataflow equations don't include hoisting, a long standing problem). Ideally PRE already would transform it to tem = *gp; if (p) return tem + tem + 1 else return tem;