speed optimisation: assuming that a tempreg not related to %esp before

is PUTed into %ESP, we do *know* that this tempreg points to %ESP afterwards,
so track it.

reduces the amount of expensive "DO_GENERIC" calls by 75% in Khtml. I've
not observed a problem with it, but consider it experimental.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1878
This commit is contained in:
Dirk Mueller 2003-10-01 10:19:08 +00:00
parent e762570dbb
commit 959360f151

View File

@ -1855,6 +1855,9 @@ UCodeBlock* vg_ESP_update_pass(UCodeBlock* cb_in)
} else {
/* Unknown delta */
DO_GENERIC;
/* now we know the temp that points to %ESP */
if ( t_ESP == INVALID_TEMPREG )
t_ESP = u->val1;
}
delta = 0;