This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/46265] Missing ifcvt
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 2 Nov 2010 10:24:09 +0000
- Subject: [Bug rtl-optimization/46265] Missing ifcvt
- Auto-submitted: auto-generated
- References: <bug-46265-4@http.gcc.gnu.org/bugzilla/>
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;