[Bug translator/6929] support constant global variables
fche at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Oct 1 18:46:00 GMT 2008
------- Additional Comments From fche at redhat dot com 2008-10-01 18:44 -------
> Sure, this request is more advanced one. We expect some formula including
> immediate values are compounded to simpler formula. For example,
> ---
> global TICKS:const=100
> global HZ:const=1000
>
> function ticktohz:long (tick) {
> return tick * HZ / TICKS; # this will be translated to tick * 10
> }
Reusing the same analysis already done for lock elision, it should not be
necessary to designate anything with ":const" for this treatment.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6929
------- 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