GCC Middle and Back End API Reference
|
Go to the source code of this file.
Functions | |
bool | simple_iv_increment_p (gimple *) |
Header file for SSA dominator optimizations. 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/>.
Returns true when STMT is a simple iv increment. It detects the following situation: i_1 = phi (..., i_k) [...] i_j = i_{j-1} for each j : 2 <= j <= k-1 [...] i_k = i_{k-1} +/- ...
References gimple_assign_lhs(), gimple_assign_rhs1(), gimple_assign_rhs_code(), gimple_assign_ssa_name_copy_p(), gimple_phi_arg_def(), gimple_phi_num_args(), i, SSA_NAME_DEF_STMT, and TREE_CODE.
Referenced by eliminate_redundant_computations().