This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/6644] New: Impure arguments prevent eliding pure function calls
- From: "joshua dot i dot stone at intel dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 14 Jun 2008 03:06:20 -0000
- Subject: [Bug translator/6644] New: Impure arguments prevent eliding pure function calls
- Reply-to: sourceware-bugzilla at sourceware dot org
When a pure function has an argument that not pure, we should be able to
evaluate the impure argument and skip calling the pure function. For example:
function foo:long(x:long) { return x * x; }
probe begin { foo(println("hello")); }
Currently the translator isn't eliding anything out of this, but it ought to be
able to reduce it down to something like:
probe begin { println("hello"); }
--
Summary: Impure arguments prevent eliding pure function calls
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: joshua dot i dot stone at intel dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6644
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.