GCC Middle and Back End API Reference
|
Go to the source code of this file.
Functions | |
bool | type_internals_preclude_sra_p (tree type, const char **msg) |
unsigned HOST_WIDE_INT | sra_get_max_scalarization_size (void) |
bool | sra_total_scalarization_would_copy_same_data_p (tree t1, tree t2) |
bool | is_va_list_type (tree type) |
Return true iff TYPE is stdarg va_list type (which early SRA and IPA-SRA should leave alone).
References TYPE_MAIN_VARIANT, and va_list_type_node.
Referenced by maybe_add_sra_candidate().
unsigned HOST_WIDE_INT sra_get_max_scalarization_size | ( | void | ) |
Get the total total scalarization size limit in the current function.
References cfun, get_move_ratio(), optimize_function_for_size_p(), and OPTION_SET_P.
Referenced by analyze_all_variable_accesses(), and ipa_icf_gimple::func_checker::safe_for_total_scalarization_p().
Given two types in an assignment, return true either if any one cannot be totally scalarized or if they have padding (i.e. not copied bits)
References check_ts_and_push_padding_to_vec(), i, and sra_padding_collecting::m_padding.
Referenced by ipa_icf_gimple::func_checker::safe_for_total_scalarization_p().
Scalar Replacement of Aggregates (SRA) converts some structure references into scalar references, exposing them to the scalar optimizers. Copyright (C) 2019-2025 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/>.
Return true iff the type contains a field or an element which does not allow scalarization.
References msg, and type_internals_preclude_sra_p_1().
Referenced by maybe_add_sra_candidate().