2015-07-02 Richard Biener <rguenther@suse.de>
commit906a94039a0d9dc5c525d9be56c73b42d7a9e39c
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Jul 2015 11:33:16 +0000 (2 11:33 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Jul 2015 11:33:16 +0000 (2 11:33 +0000)
treede2a914d4fee104b8455d4f67d8432cac9176a9d
parent1e5e38587c894d8ea804934c1d65fdab4303edf0
2015-07-02  Richard Biener  <rguenther@suse.de>

* builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
* fold-const.c (get_pointer_modulus_and_residue): Remove.
(fold_binary_loc): Implement (T)ptr & CST in terms of
get_pointer_alignment_1.
* tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
Make sure to build the alignment test on a SSA name without
final alignment info valid only after the prologue.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225310 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c
gcc/fold-const.c
gcc/tree-vect-loop-manip.c