Implement --vex-iropt-register-updates=sp-at-mem-access
authorphilippe <philippe@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Tue, 14 Aug 2012 22:28:31 +0000 (22:28 +0000)
committerphilippe <philippe@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Tue, 14 Aug 2012 22:28:31 +0000 (22:28 +0000)
commit92f84a98e473ae8a9f306ac22e97596e1a79a9c2
treee7c4364374e7f07b1c435b3cb5359d2f3405cfbe
parent71bca5998420d0d448345f02bf310b33115f1197
Implement --vex-iropt-register-updates=sp-at-mem-access

Option sp-at-mem-access can be used by tools which do not
need an up to date BP and IP at each mem access.
It is needed however to have SP up to date at each memory
access, as an up to date SP is needed to grow the stack in
m_signals.c

Tools massif, cachegrind and callgrind are using sp-at-mem-access
as default.
None tool could also use sp-at-mem-access but default is kept
to unwindregs-at-mem-access (similar to memcheck, drd, helgrind, exp-sgcheck).

exp-dhat, exp-bbv, lackey have not been looked at to see if they
could make use of sp-at-mem-access.

Validated on x86, amd64, ppc64 and s390x.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12872 a5019735-40e9-0310-863c-91ae7b9d1cf9
cachegrind/cg_main.c
callgrind/main.c
coregrind/m_main.c
massif/ms_main.c
none/tests/cmdline2.stdout.exp