This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/10719] New: Implement constant-folding optimizations


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]