Cachegrind: introduce special case for Ir
authorweidendo <weidendo@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Tue, 30 Oct 2012 00:28:29 +0000 (00:28 +0000)
committerweidendo <weidendo@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Tue, 30 Oct 2012 00:28:29 +0000 (00:28 +0000)
commitf64a816167a3b3911402b46b452645b2a6de23cf
tree026c57666f39e82b6a7abad8ab53b0161ee42f2c
parent7391c7ec647f1a22b4389bf41f62b76ab0fe7dca
Cachegrind: introduce special case for Ir

Because most Ir accesses touch only one line, and this
can be detected at instrumentation time, use a special
handler for that. This handler does not need to check
cache line crossing at runtime.

This does not change the results of the simulator at all,
but improves runtime by around 15% on perf benchmarks.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13095 a5019735-40e9-0310-863c-91ae7b9d1cf9
cachegrind/cg_main.c
cachegrind/cg_sim.c