aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-im.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-11-13 13:17:01 +0100
committerRichard Biener <rguenther@suse.de>2020-11-13 15:19:49 +0100
commit4d6b8d4213376e8a2405782c7e360b03d4a2b04a (patch)
treef599a9e8d807d6e27554e3dcadfd719a2a254d55 /gcc/tree-ssa-loop-im.c
parentbe6169045edab396ab80b2ae72ca551c893bf922 (diff)
downloadgcc-4d6b8d4213376e8a2405782c7e360b03d4a2b04a.zip
gcc-4d6b8d4213376e8a2405782c7e360b03d4a2b04a.tar.gz
gcc-4d6b8d4213376e8a2405782c7e360b03d4a2b04a.tar.bz2
improve VN PHI hashing
This reduces the number of collisions for PHIs in the VN hashtable by always hashing the number of predecessors and separately hashing the block number when we never merge PHIs from different blocks. This improves collisions seen for the PR69609 testcase dramatically. 2020-11-13 Richard Biener <rguenther@suse.de> * tree-ssa-sccvn.c (vn_phi_compute_hash): Always hash the number of predecessors. Hash the block number also for loop header PHIs. (expressions_equal_p): Short-cut SSA name compares, remove test for NULL operands. (vn_phi_eq): Cache number of predecessors, change inlined test from expressions_equal_p.
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
0 files changed, 0 insertions, 0 deletions