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/19831] Missing DSE/malloc/free optimization


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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-09-07 14:11:29 UTC ---
I'll give it another try somewhen.  Don't mark the free as necessary, nor
its operand.  If a malloc ends up not being marked as necessary
and all uses of the lhs are free calls remove the pairs, otherwise do nothing
in eliminate_unnecessary_stmts.


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