GCC Middle and Back End API Reference
tree-ssa-coalesce.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void coalesce_ssa_name (var_map)
 
bool gimple_can_coalesce_p (tree, tree)
 

Function Documentation

◆ coalesce_ssa_name()

void coalesce_ssa_name ( var_map map)
extern
Header file for tree-ssa-coalesce.cc exports.
   Copyright (C) 2013-2024 Free Software Foundation, Inc.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Given an initial var_map MAP, coalesce variables and return a partition map
with the resulting coalesce.  Note that this function is called in either
live range computation context or out-of-ssa context, indicated by MAP.   

References bitmap_ior_into(), bitmap_list_view(), bitmap_tree_view(), build_ssa_conflict_graph(), calculate_live_ranges(), coalesce_bitint(), coalesce_partitions(), compute_optimized_partition_bases(), create_coalesce_list_for_region(), delete_coalesce_list(), delete_tree_live_info(), dump_coalesce_list(), dump_file, dump_flags, dump_live_info(), dump_var_map(), ggc_alloc(), graph, LIVEDUMP_ENTRY, map, NULL, num_var_partitions(), partition_view_bitmap(), populate_coalesce_list_for_outofssa(), sort_coalesce_list(), ssa_conflicts_delete(), ssa_conflicts_dump(), and TDF_DETAILS.

Referenced by gimple_lower_bitint(), and remove_ssa_form().

◆ gimple_can_coalesce_p()

bool gimple_can_coalesce_p ( tree name1,
tree name2 )
extern
Given SSA_NAMEs NAME1 and NAME2, return true if they are candidates for
coalescing together, false otherwise.

This must stay consistent with compute_samebase_partition_bases and 
compute_optimized_partition_bases.   

References DECL_IGNORED_P, DECL_MODE, ggc_alloc(), LOCAL_DECL_ALIGNMENT, MINIMUM_ALIGNMENT, NULL_TREE, promote_ssa_mode(), SSA_NAME_VAR, TREE_TYPE, TYPE_ALIGN, TYPE_MODE, types_compatible_p(), use_register_for_decl(), and VAR_P.

Referenced by coalesce_partitions(), create_coalesce_list_for_region(), populate_coalesce_list_for_outofssa(), and uncprop_into_successor_phis().