This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap 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 translator/5690] optimize more unused arrays


------- 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.


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