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/20341] optimizer does not remove variables that are read in probe aliases but not end-user probes


https://sourceware.org/bugzilla/show_bug.cgi?id=20341

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fche at redhat dot com

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
This is not probe-alias-specific.  We don't drop assignments to variables that
are never subsequently used.

% stap -e 'probe begin {j = i+0; i= j} ' -p2 --vp 03

# probes
begin /* <- begin */
  # locals
  j:long
  i:long
{
(j) = (i);
(i) = (j);
}


We may need a mini SSA pass.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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