For ranges, PHIs don't need to process arg == def.
authorAndrew MacLeod <amacleod@redhat.com>
Tue, 2 Nov 2021 13:46:53 +0000 (09:46 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Wed, 3 Nov 2021 14:13:32 +0000 (10:13 -0400)
commit6d936684fcf9bbb55837e3a87ae2221d5ec9b5b7
treec63f2cb2f3cbb53d3bfe57ef2bebdfebebe6cacb
parentb18394ce15639489a91a502d3b9db30d73898191
For ranges, PHIs don't need to process arg == def.

If an argument of a phi is the same as the DEF of the phi, then the range
on the incoming edge doesn't need to be taken into account since it can't
be anything other than itself.

* gimple-range-fold.cc (fold_using_range::range_of_phi): Don't import
a range from edge if arg == phidef.
gcc/gimple-range-fold.cc