https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126914
--- Comment #5 from Jeffrey A. Law <law at gcc dot gnu.org> --- Just an FYI. I've got a prototype up to address this problem. It obviously still needs work, but the plan is a round of cleanup before stage1 closes and post. While this is a regression and could move forward during stage3/stage4, I'll sleep better with the patches posted as part of stage1. It follows the basic idea outlined below. Essentially we try all the if-conversion rather than stopping at the first that is better than a branch. The method with the lowest cost wins.
