Always track arguments, even when ignoring equiv params.
authorAndrew MacLeod <amacleod@redhat.com>
Mon, 29 Nov 2021 14:19:34 +0000 (09:19 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Tue, 30 Nov 2021 14:07:21 +0000 (09:07 -0500)
commite43b15c88c242b14a8ced8e631c1f9b80e83d63c
tree80d5dae509a532247a94efe060bec069984ece96
parentfa01e206c87581186f64f4500f926cdb70549de0
Always track arguments, even when ignoring equiv params.

To "ignore" ranges from equivalences, we should track the range separately,
but still do the other name processing which determiens if there is a single
name or not for equivalence.  Otherwise we mistakently think we can introduce
an equivalences.

gcc/
PR tree-optimization/103440
* gimple-range-fold.cc (fold_using_range::range_of_phi): Continue
normal param processing for equiv params.

gcc/testsuite/
* gcc.dg/pr103440.c: New.
gcc/gimple-range-fold.cc
gcc/testsuite/gcc.dg/pr103440.c [new file with mode: 0644]