Minor vn_reference_lookup_3 tweak
authorRichard Sandiford <richard.sandiford@linaro.org>
Sat, 16 Dec 2017 14:09:04 +0000 (14:09 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sat, 16 Dec 2017 14:09:04 +0000 (14:09 +0000)
commit7a667e6491f0df391bb19839b580f33b54088bf3
treed7e67dde4f1147cf77112c00ff38049af1372e8e
parent9adab579d59ea50eeb6877df2292d9d5c7b20e3e
Minor vn_reference_lookup_3 tweak

The repeated checks for MEM_REF made this code hard to convert to
poly_ints as-is.  Hopefully the new structure also makes it clearer
at a glance what the two cases are.

2017-12-16  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid repeated
checks for MEM_REF.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r255742
gcc/ChangeLog
gcc/tree-ssa-sccvn.c