This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/46265] Missing ifcvt


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]