This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/2600] should optimize away assignments in other contexts
- From: "scox at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 14 May 2008 12:35:18 -0000
- Subject: [Bug translator/2600] should optimize away assignments in other contexts
- References: <20060424132227.2600.fche@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From scox at redhat dot com 2008-05-14 12:35 -------
Here are some partial results:
Given: global values, idx, nridx
probe begin {
nridx = 0
values[idx=1] = 10
values[idx=2] = 20
values[nidx=3] = 30
printf ("optarridx.stp %d %d %d\n", values[1], values[2], nidx)
exit ()
}
begin /* <- begin */
# locals
nidx:long
{
(values[1]) = (10)
(values[2]) = (20)
(values[(nidx) = (3)]) = (30)
printf("optarridx.stp %d %d %d\\n", values[1], values[2], nidx)
exit()
}
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|systemtap at sources dot |scox at redhat dot com
|redhat dot com |
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=2600
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.