Fix unguarded use of tree_to_shwi in tree-ssa-sccvn.c
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 28 Aug 2018 10:42:42 +0000 (10:42 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 28 Aug 2018 10:42:42 +0000 (10:42 +0000)
commit4ec4324d0f2425ad64540d4c4d8d29f8e8077c3d
treecb7bff7e7b49f1866987d495f95779e67716a70f
parent463a9e0d31351d1b97f98da03cacb0b1867edad5
Fix unguarded use of tree_to_shwi in tree-ssa-sccvn.c

Fixes many testsuite failures for SVE.

2018-08-28  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* tree-ssa-sccvn.c (fully_constant_vn_reference_p): Fix unguarded
use of tree_to_shwi.  Remove duplicated test for the size being
a whole number of bytes.

From-SVN: r263914
gcc/ChangeLog
gcc/tree-ssa-sccvn.c