re PR tree-optimization/66142 (Loop is not vectorized because not sufficient support...
authorRichard Biener <rguenther@suse.de>
Fri, 18 Sep 2015 07:57:00 +0000 (07:57 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 18 Sep 2015 07:57:00 +0000 (07:57 +0000)
commita0f79fcc43760c8b7f72eccc9686c6e5cb7995d9
tree5b63093bcc6c103adf789191e978d64af6c25cd8
parent9ace6a87332fe24076e18706d8d2c7c9b56dcce9
re PR tree-optimization/66142 (Loop is not vectorized because not sufficient support for GOMP_SIMD_LANE)

2015-09-18  Richard Biener  <rguenther@suse.de>

PR tree-optimization/66142
* fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
treat MEM[&x] and x the same.
* tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
* tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
when we simplified sth.
(vn_reference_maybe_forwprop_address): Likewise.
(valueize_refs_1): When we simplified through
vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
set valueized_anything to true.
(vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
one ref kills the other instead of just a offset-based test.
* tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
for the operand_equal_p test to compare bases and also compare
sizes.

From-SVN: r227896
gcc/ChangeLog
gcc/fold-const.c
gcc/tree-ssa-alias.c
gcc/tree-ssa-sccvn.c
gcc/tree-ssa-sccvn.h