Bug 315608 (MONO62008) - [PATCH] dont create temporaries for other temporaries
Summary: [PATCH] dont create temporaries for other temporaries
Status: RESOLVED FIXED
Alias: MONO62008
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-27 19:43 UTC by Ben Maurer
Modified: 2008-11-18 23:18 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
mini-no-temps-of-temps.patch (1.97 KB, patch)
2004-07-27 19:44 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:48:13 UTC


---- Reported by bmaurer@users.sf.net 2004-07-27 12:43:52 MST ----

in handle_loaded_temps, we create temporaries for everything on the stack
whenever an instruction might modify data.

This optimization marks some variables as temporaries -- they will only be
written to once. handle_loaded_temps will not copy them into a new
variable, as they will never be clobbered.

This saves 2% of the variables we create when compiling corlib. It reduces
the size of the code by 10 kb.



---- Additional Comments From bmaurer@users.sf.net 2004-07-27 12:44:10 MST ----

Created an attachment (id=166535)
mini-no-temps-of-temps.patch


Imported an attachment (id=166535)

Unknown operating system unknown. Setting to default OS "Other".

Comment 1 Rodrigo Kumpera 2008-11-18 23:18:55 UTC
This is no longer needed as the new JIT can properly promote a var to a temp and the DCE pass will elminate the excess copying.