This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10719] New: Implement constant-folding optimizations
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 1 Oct 2009 17:42:18 -0000
- Subject: [Bug translator/10719] New: Implement constant-folding optimizations
- Reply-to: sourceware-bugzilla at sourceware dot org
It should be simple to resolve expressions like this at compile time:
if (@1 == "foo" && $2 == 42)
println("clichéd arguments found!")
Beware of side effects though -- "if (0 && foo())" can always be removed, but
"if (foo() && 0)" might need to call foo() even though its return value doesn't
matter.
--
Summary: Implement constant-folding optimizations
Product: systemtap
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: jistone at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10719
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.