This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/5690] optimize more unused arrays
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 20 Feb 2008 03:25:12 -0000
- Subject: [Bug translator/5690] optimize more unused arrays
- References: <20080129202839.5690.fche@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From fche at redhat dot com 2008-02-20 03:25 -------
staptree.cxx explains the history, and further code scanning suggests this
is challenging to fix. One complication is side-effect-laden array indexing
expressions.
void
varuse_collecting_visitor::visit_delete_statement (delete_statement* s)
{
// Ideally, this would be treated like an assignment: a plain write
// to the underlying value ("lvalue"). XXX: However, the
// optimization pass is not smart enough to remove an unneeded
// "delete" yet, so we pose more like a *crement ("lrvalue"). This
// should protect the underlying value from optimizional mischief.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://sourceware.org/bugzilla/show_bug.cgi?id=5690
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.