https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87047
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Alexander Monakov from comment #8) > Well, original_costs is already initialized with COSTS_N_INSNS (2), > accounting for test and branch that would be removed. So it's not too bad: > in pr78120.c else_bb is in fact missing. I think that is not enough. > (on x86 I think we shouldn't encourage if-conversion, by adding data > dependencies it can lengthen critical paths) if-conversion is indeed very problematic on x86-64, but it isn't as easy as don't try to encourage it, because it slows down many important cases in that case if jumps are used. We have many PRs where users ask on specific testcases for more x86 if-conversion, and many PRs where users ask for less or no if-conversion.