* [Bug translator/10719] New: Implement constant-folding optimizations
@ 2009-10-01 17:42 jistone at redhat dot com
2009-10-02 0:13 ` [Bug translator/10719] " jistone at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: jistone at redhat dot com @ 2009-10-01 17:42 UTC (permalink / raw)
To: systemtap
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 827 bytes --]
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug translator/10719] Implement constant-folding optimizations
2009-10-01 17:42 [Bug translator/10719] New: Implement constant-folding optimizations jistone at redhat dot com
@ 2009-10-02 0:13 ` jistone at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: jistone at redhat dot com @ 2009-10-02 0:13 UTC (permalink / raw)
To: systemtap
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|systemtap at sources dot |jistone at redhat dot com
|redhat dot com |
Status|NEW |ASSIGNED
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-02 0:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-01 17:42 [Bug translator/10719] New: Implement constant-folding optimizations jistone at redhat dot com
2009-10-02 0:13 ` [Bug translator/10719] " jistone at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).