]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix miscompilation of gnatbind with profiled bootstrap
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 3 Dec 2025 16:26:49 +0000 (17:26 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Wed, 3 Dec 2025 16:40:55 +0000 (17:40 +0100)
commitf5978fc4f173d04dd5c48318cdff107cc4fabc76
tree74a077b1c54d20255fa10b76d294390a715bee73
parent1eb2aeed08ca8732e5146974bcf5512bdfcd2e5f
Fix miscompilation of gnatbind with profiled bootstrap

Boolean types may have precision > 1 so using !undefined_p && !varying_p is
not sufficient for them.

gcc/
PR tree-optimization/122934
* tree-ssa-loop-niter.cc (simplify_using_initial_conditions): Use
singleton_p predicate even with boolean ranges.
gcc/tree-ssa-loop-niter.cc