]> git.ipfire.org Git - thirdparty/gcc.git/commit
[prange] Use type agnostic range in phiopt [PR115191]
authorAldy Hernandez <aldyh@redhat.com>
Wed, 22 May 2024 20:32:57 +0000 (22:32 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Thu, 23 May 2024 06:14:57 +0000 (08:14 +0200)
commit35a293a6454ac0cd88735036f536d8f4ec65951a
tree4d687644e906df1d8304323fdaa208642701a5f6
parent01cfd6018250141a262219c5803c3f2a278d909d
[prange] Use type agnostic range in phiopt [PR115191]

Fix a use of int_range_max in phiopt that should be a type agnostic
range, because it could be either a pointer or an int.

PR tree-optimization/115191

gcc/ChangeLog:

* tree-ssa-phiopt.cc (value_replacement): Use Value_Range instead
of int_range_max.

gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/pr115191.c: New test.
gcc/testsuite/gcc.dg/tree-ssa/pr115191.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.cc