[Bug translator/20341] optimizer does not remove variables that are read in probe aliases but not end-user probes

fche at redhat dot com sourceware-bugzilla@sourceware.org
Fri Jul 8 21:41:00 GMT 2016


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.


More information about the Systemtap mailing list