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 tree-optimization/33344] if(!z) {a.b = x->b + 1; z = &a; } else if (!x) { a.b = z->b+1; x = &a; } use z->b and x->b; is not optimized



------- Comment #1 from rguenth at gcc dot gnu dot org  2007-09-08 13:00 -------
It's currently not optimized because the simple phiprop does neither handle
component references nor inserts loads from pointers.

See the thread starting at
http://gcc.gnu.org/ml/gcc-patches/2007-04/msg01075.html
on how to teach PRE to do a small set of possible transformations like this.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-09-08 13:00:10
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33344


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