-
- Downloads
Change more non-GTY hash tables to use the new type-safe template hash table.
Constify member function parameters that can be const. Correct a couple of expressions in formerly uninstantiated templates. The new code is 0.362% faster in bootstrap, with a 99.5% confidence of being faster. Tested on x86-64. Index: gcc/java/ChangeLog 2012-10-01 Lawrence Crowl <crowl@google.com> * Make-lang.in (JAVA_OBJS): Add dependence on hash-table.o. (JCFDUMP_OBJS): Add dependence on hash-table.o. (jcf-io.o): Add dependence on hash-table.h. * jcf-io.c (memoized_class_lookups): Change to use type-safe hash table. Index: gcc/c/ChangeLog 2012-10-09 Lawrence Crowl <crowl@google.com> * Make-lang.in (c-decl.o): Add dependence on hash-table.h. * c-decl.c (detect_field_duplicates_hash): Change to new type-safe hash table. Index: gcc/objc/ChangeLog 2012-10-01 Lawrence Crowl <crowl@google.com> * Make-lang.in (OBJC_OBJS): Add dependence on hash-table.o. (objc-act.o): Add dependence on hash-table.h. * objc-act.c (objc_detect_field_duplicates): Change to new type-safe hash table. Index: gcc/ChangeLog 2012-10-09 Lawrence Crowl <crowl@google.com> * Makefile.in (fold-const.o): Add depencence on hash-table.h. (dse.o): Likewise. (cfg.o): Likewise. * fold-const.c (fold_checksum_tree): Change to new type-safe hash table. * (print_fold_checksum): Likewise. * cfg.c (var bb_original): Likewise. * (var bb_copy): Likewise. * (var loop_copy): Likewise. * hash-table.h (template hash_table): Constify parameters for find... and remove_elt... member functions. (hash_table::empty) Correct size expression. (hash_table::clear_slot) Correct deleted entry assignment. * dse.c (var rtx_group_table): Change to new type-safe hash table. Index: gcc/cp/ChangeLog 2012-10-09 Lawrence Crowl <crowl@google.com> * Make-lang.in (class.o): Add dependence on hash-table.h. (tree.o): Likewise. (semantics.o): Likewise. * class.c (fixed_type_or_null): Change to new type-safe hash table. * tree.c (verify_stmt_tree): Likewise. (verify_stmt_tree_r): Likewise. * semantics.c (struct nrv_data): Likewise. From-SVN: r192273
Showing
- gcc/ChangeLog 16 additions, 0 deletionsgcc/ChangeLog
- gcc/Makefile.in 4 additions, 4 deletionsgcc/Makefile.in
- gcc/c/ChangeLog 6 additions, 0 deletionsgcc/c/ChangeLog
- gcc/c/Make-lang.in 1 addition, 1 deletiongcc/c/Make-lang.in
- gcc/c/c-decl.c 9 additions, 7 deletionsgcc/c/c-decl.c
- gcc/cfg.c 40 additions, 41 deletionsgcc/cfg.c
- gcc/cp/ChangeLog 10 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/Make-lang.in 3 additions, 3 deletionsgcc/cp/Make-lang.in
- gcc/cp/class.c 8 additions, 10 deletionsgcc/cp/class.c
- gcc/cp/semantics.c 6 additions, 5 deletionsgcc/cp/semantics.c
- gcc/cp/tree.c 9 additions, 7 deletionsgcc/cp/tree.c
- gcc/dse.c 20 additions, 18 deletionsgcc/dse.c
- gcc/fold-const.c 41 additions, 38 deletionsgcc/fold-const.c
- gcc/hash-table.h 14 additions, 14 deletionsgcc/hash-table.h
- gcc/java/ChangeLog 7 additions, 0 deletionsgcc/java/ChangeLog
- gcc/java/Make-lang.in 3 additions, 3 deletionsgcc/java/Make-lang.in
- gcc/java/jcf-io.c 27 additions, 16 deletionsgcc/java/jcf-io.c
- gcc/objc/ChangeLog 7 additions, 0 deletionsgcc/objc/ChangeLog
- gcc/objc/Make-lang.in 2 additions, 2 deletionsgcc/objc/Make-lang.in
- gcc/objc/objc-act.c 19 additions, 14 deletionsgcc/objc/objc-act.c
Loading
Please register or sign in to comment