https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114985
--- Comment #36 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Jambor <jamb...@gcc.gnu.org>: https://gcc.gnu.org/g:012f5a22bac26a898ab66655965b07ac23201fdd commit r15-5291-g012f5a22bac26a898ab66655965b07ac23201fdd Author: Martin Jambor <mjam...@suse.cz> Date: Thu Nov 14 20:55:06 2024 +0100 ipa: Rationalize IPA-VR computations across pass-through jump functions Currently ipa_value_range_from_jfunc and propagate_vr_across_jump_function contain similar but not same code for dealing with pass-through jump functions. This patch puts these common bits into one function which can also handle comparison operations. gcc/ChangeLog: 2024-11-01 Martin Jambor <mjam...@suse.cz> PR ipa/114985 * ipa-cp.cc (ipa_vr_intersect_with_arith_jfunc): New function. (ipa_value_range_from_jfunc): Move the common functionality to the above new function, adjust the rest so that it works with it well. (propagate_vr_across_jump_function): Likewise.