]> git.ipfire.org Git - thirdparty/gcc.git/commit
Make fold_cond_with_ops use a boolean type for range_true/range_false.
authorAldy Hernandez <aldyh@redhat.com>
Wed, 7 Feb 2024 10:27:29 +0000 (11:27 +0100)
committerAldy Hernandez <aldyh@redhat.com>
Sun, 28 Apr 2024 19:03:00 +0000 (21:03 +0200)
commit039e88b1aea5723221e8b0b926c35afb2f96a8a9
tree92542616187acc6b86971c12404ce212e2e45633
parenteeef1f69c5e77ecf13fdcf44df5bcf592a9993e6
Make fold_cond_with_ops use a boolean type for range_true/range_false.

Conditional operators are always boolean, regardless of their
operands.  Getting the type wrong is not currently a problem, but will
be when prange's can no longer store an integer.

gcc/ChangeLog:

* vr-values.cc (simplify_using_ranges::fold_cond_with_ops): Remove
type from range_true and range_false.
gcc/vr-values.cc