Avoid left around copies when value-numbering BBs
commitb583a2940af90d03f535648fef111cb158933f7d
authorRichard Biener <rguenther@suse.de>
Wed, 4 Oct 2023 13:25:33 +0000 (4 15:25 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 5 Oct 2023 08:23:32 +0000 (5 10:23 +0200)
treeb89485b5aea638dc9d07e7f464b9e6ba2fec9cae
parentffbd7c3d0fd1b9b10ef5a0f2b2e64bd234620167
Avoid left around copies when value-numbering BBs

The following makes sure to treat values whose definition we didn't
visit as available since those by definition must dominate the entry
of the region.  That avoids unpropagated copies after if-conversion
and resulting SLP discovery fails (which doesn't handle plain copies).

* tree-ssa-sccvn.cc (rpo_elim::eliminate_avail): Not
visited value numbers are available itself.
gcc/tree-ssa-sccvn.cc