VN/PRE TLC
authorRichard Biener <rguenther@suse.de>
Wed, 3 Nov 2021 14:01:44 +0000 (15:01 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 4 Nov 2021 09:15:36 +0000 (10:15 +0100)
commitfa62db42b99e9eb1c067d2171bc437b3394e4d5d
tree9238392768cfb1737bd6c68c086396043a42d3cc
parentf75e56f46d45cfb2fc9bc80ffc627ccfb41ffca6
VN/PRE TLC

This removes an always true parameter of vn_nary_op_insert_into and moves
valueization to the two callers of vn_nary_op_compute_hash instead of doing it
therein where this function name does not suggest such thing.
Also remove extra valueization from PRE phi-translation.

2021-11-03  Richard Biener  <rguenther@suse.de>

* tree-ssa-sccvn.c (vn_nary_op_insert_into): Remove always
true parameter and inline valueization.
(vn_nary_op_lookup_1): Inline valueization from ...
(vn_nary_op_compute_hash): ... here and remove it here.
* tree-ssa-pre.c (phi_translate_1): Do not valueize
before vn_nary_lookup_pieces.
(get_representative_for): Mark created SSA representatives
as visited.
gcc/tree-ssa-pre.c
gcc/tree-ssa-sccvn.c