Bugzilla – Bug 315608
[PATCH] dont create temporaries for other temporaries
Last modified: 2008-11-18 23:18:55 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".
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.