This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/2339] New: optimize out unnecessary copies and assignments
- From: "hunt at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 14 Feb 2006 17:38:41 -0000
- Subject: [Bug translator/2339] New: optimize out unnecessary copies and assignments
- Reply-to: sourceware-bugzilla at sourceware dot org
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.