]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/100923 - re-do VN with contextual PTA info fix
authorRichard Biener <rguenther@suse.de>
Wed, 28 Feb 2024 09:08:31 +0000 (10:08 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 6 May 2024 13:12:04 +0000 (15:12 +0200)
commit7c469a9fc785505dc350aba60311812c2bb0c1b5
tree6a63e69419c71dbadfd6fd4e9e134d9f1e93f92a
parent8bdfb0c2d5a13a4fb846cde291decff06e4b753c
tree-optimization/100923 - re-do VN with contextual PTA info fix

The following implements the gist of the PR100923 fix in a leaner
(and more complete) way by realizing that all ao_ref_init_from_vn_reference
uses need to have an SSA name in the base valueized with availability
in mind.  Instead of re-valueizing the whole chain of operands we can
simply only and always valueize the SSA name we put in the base.

This handles also two omitted places in vn_reference_lookup_3.

PR tree-optimization/100923
* tree-ssa-sccvn.cc (ao_ref_init_from_vn_reference): Valueize
base SSA_NAME.
(vn_reference_lookup_3): Adjust vn_context_bb around calls
to ao_ref_init_from_vn_reference.
(vn_reference_lookup_pieces): Revert original PR100923 fix.
(vn_reference_lookup): Likewise.
gcc/tree-ssa-sccvn.cc
This page took 0.055732 seconds and 6 git commands to generate.