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/6644] New: Impure arguments prevent eliding pure function calls


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.


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