https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154
--- Comment #73 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tamar Christina <tnfch...@gcc.gnu.org>: https://gcc.gnu.org/g:dd28f90c95378bf8ebb82a3dfdf24a6ad190877a commit r14-4716-gdd28f90c95378bf8ebb82a3dfdf24a6ad190877a Author: Tamar Christina <tamar.christ...@arm.com> Date: Wed Oct 18 09:49:36 2023 +0100 ifcvt: rewrite args handling to remove lookups This refactors the code to remove the args cache and index lookups in favor of a single structure. It also again, removes the use of std::sort as previously requested but avoids the new asserts in trunk. gcc/ChangeLog: PR tree-optimization/109154 * tree-if-conv.cc (INCLUDE_ALGORITHM): Remove. (typedef struct ifcvt_arg_entry): New. (cmp_arg_entry): New. (gen_phi_arg_condition, gen_phi_nest_statement, predicate_scalar_phi): Use them.