aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range-path.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-04-04 13:01:10 +0200
committerRichard Biener <rguenther@suse.de>2024-05-07 13:14:56 +0200
commitc69eda94f28384b7f30e2b40aebb097ef59e522f (patch)
tree11e0f6c0d174f7fbc1e517506c360898425d361e /gcc/gimple-range-path.cc
parent35b05a02de1e8aee7c754a20f50736977c71caca (diff)
downloadgcc-c69eda94f28384b7f30e2b40aebb097ef59e522f.zip
gcc-c69eda94f28384b7f30e2b40aebb097ef59e522f.tar.gz
gcc-c69eda94f28384b7f30e2b40aebb097ef59e522f.tar.bz2
Use unsigned for stack var indexes during RTL expansion
We're currently using size_t but at the same time storing them into bitmaps which only support unsigned int index. The following makes it unsigned int throughout, saving memory as well. * cfgexpand.cc (stack_var::representative): Use 'unsigned' for stack var indexes instead of 'size_t'. (stack_var::next): Likewise. (EOC): Likewise. (stack_vars_alloc): Likewise. (stack_vars_num): Likewise. (decl_to_stack_part): Likewise. (stack_vars_sorted): Likewise. (add_stack_var): Likewise. (add_stack_var_conflict): Likewise. (stack_var_conflict_p): Likewise. (visit_op): Likewise. (visit_conflict): Likewise. (add_scope_conflicts_1): Likewise. (stack_var_cmp): Likewise. (part_hashmap): Likewise. (update_alias_info_with_stack_vars): Likewise. (union_stack_vars): Likewise. (partition_stack_vars): Likewise. (dump_stack_var_partition): Likewise. (expand_stack_vars): Likewise. (account_stack_vars): Likewise. (stack_protect_decl_phase_1): Likewise. (stack_protect_decl_phase_2): Likewise. (asan_decl_phase_3): Likewise. (init_vars_expansion): Likewise. (estimated_stack_frame_size): Likewise.
Diffstat (limited to 'gcc/gimple-range-path.cc')
0 files changed, 0 insertions, 0 deletions