https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118505
--- Comment #19 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>: https://gcc.gnu.org/g:dc6b949c553a3be1ce4d6671fb8a9de213ede114 commit r15-7271-gdc6b949c553a3be1ce4d6671fb8a9de213ede114 Author: Andrew Pinski <quic_apin...@quicinc.com> Date: Tue Jan 28 12:00:06 2025 -0800 split-path: Small fix for poor_ifcvt_pred (tsvc s258) [PR118505] After r15-3436-gb2b20b277988ab, poor_ifcvt_pred returns false for the case where the statement could trap but in this case trapping instructions cannot be made unconditional so it is a poor ifcvt. This fixes a small preformance regression with TSVC s258 at `-O3 -ftrapping-math` on aarch64 where ifcvt would not happen and we would still have a branch. On a specific aarch64, we go from 0.145s down to 0.118s. Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: PR tree-optimization/118505 * gimple-ssa-split-paths.cc (poor_ifcvt_pred): Return true for trapping statements. Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>