aboutsummaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-02-14 14:51:48 +0100
committerRichard Biener <rguenther@suse.de>2023-02-14 16:18:57 +0100
commite72c2770b6d913c82a56d45a306c4cb2ed88fba5 (patch)
tree064d8ce01b29c10c8d578295c2a58e4210a60f6b /libgomp
parent1434eee54e57ad4839c0697f1294f9e8fe0a3044 (diff)
downloadgcc-e72c2770b6d913c82a56d45a306c4cb2ed88fba5.zip
gcc-e72c2770b6d913c82a56d45a306c4cb2ed88fba5.tar.gz
gcc-e72c2770b6d913c82a56d45a306c4cb2ed88fba5.tar.bz2
Improve VN PHI hash table handling
The hash function of PHIs is weak since we want to be able to CSE them even across basic-blocks in some cases. The following avoids weakening the hash for cases we are never going to CSE, reducing the number of collisions and avoiding redundant work in the hash and equality functions. * tree-ssa-sccvn.cc (vn_phi_compute_hash): Key skipping basic block index hashing on the availability of ->cclhs. (vn_phi_eq): Avoid re-doing sanity checks for CSE but rely on ->cclhs availability. (vn_phi_lookup): Set ->cclhs only when we are eventually going to CSE the PHI. (vn_phi_insert): Likewise.
Diffstat (limited to 'libgomp')
0 files changed, 0 insertions, 0 deletions