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/2339] New: optimize out unnecessary copies and assignments


Simple concatenations like
str = str."foo"
generate 3 strcpys and a strcat.

x = 5
first copies 5 to a temporary variable then sets x to the temporary variable.

x++
copies 1 to a temporary variable then copies x to a temporary variable, then
adds the two temp and sets x to that,

Is there anything that can be done to make this more efficient?

-- 
           Summary: optimize out unnecessary copies and assignments
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: hunt at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=2339

------- 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]