[Bug translator/2600] should optimize away assignments in other contexts
scox at redhat dot com
sourceware-bugzilla@sourceware.org
Wed May 14 14:54:00 GMT 2008
------- 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.
More information about the Systemtap
mailing list