builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
authorRichard Biener <rguenther@suse.de>
Thu, 2 Jul 2015 11:33:16 +0000 (11:33 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 2 Jul 2015 11:33:16 +0000 (11:33 +0000)
commit5fa79de857ef94a396c313826b290c4bb548c135
treede2a914d4fee104b8455d4f67d8432cac9176a9d
parentcc2af70593133757b1671e184145eaa0b57db3bf
builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.

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.

From-SVN: r225310
gcc/ChangeLog
gcc/builtins.c
gcc/fold-const.c
gcc/tree-vect-loop-manip.c