diff options
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2007-08-28 06:05:20 +0000 |
---|---|---|
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2007-08-28 06:05:20 +0000 |
commit | 81651dc1ae8cc13a5c857a0fb4137304ed17aa43 (patch) | |
tree | b6ab68e1e0e51ebe388155c2d1f7610fc773c6bf /memcheck/mc_main.c | |
parent | e783ceb320eb27d18b666d708bb09684149680eb (diff) |
Merge, from CGTUNE branch, a cleaned up version of r6742:
Another optimisation: allow tools to provide a final_tidy function
which they can use to mess with the final post-tree-built IR before it
is handed off to instruction selection.
In memcheck, use this to remove redundant calls to
MC_(helperc_value_check0_fail) et al. Gives a 6% reduction in code
size for Memcheck on x86 and a smaller (3% ?) speedup.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6787 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'memcheck/mc_main.c')
-rw-r--r-- | memcheck/mc_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c index 4de8377a..a553f92e 100644 --- a/memcheck/mc_main.c +++ b/memcheck/mc_main.c @@ -4969,6 +4969,9 @@ static void mc_pre_clo_init(void) MC_(instrument), mc_fini); + VG_(needs_final_IR_tidy_pass) ( MC_(final_tidy) ); + + VG_(needs_core_errors) (); VG_(needs_tool_errors) (mc_eq_Error, mc_pp_Error, |