[Bug tree-optimization/19831] Missing DSE/malloc/free optimization
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 7 14:20:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list