diff options
Diffstat (limited to 'gcc/tree-if-conv.c')
-rw-r--r-- | gcc/tree-if-conv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index 637fa22..55b590b 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -111,6 +111,7 @@ along with GCC; see the file COPYING3. If not see #include "dbgcnt.h" #include "tree-hash-traits.h" #include "varasm.h" +#include "builtins.h" /* List of basic blocks in if-conversion-suitable order. */ static basic_block *ifc_bbs; @@ -2056,7 +2057,8 @@ predicate_mem_writes (loop_p loop) vect_sizes.safe_push (bitsize); vect_masks.safe_push (mask); } - ptr = build_int_cst (reference_alias_ptr_type (ref), 0); + ptr = build_int_cst (reference_alias_ptr_type (ref), + get_object_alignment (ref)); /* Copy points-to info if possible. */ if (TREE_CODE (addr) == SSA_NAME && !SSA_NAME_PTR_INFO (addr)) copy_ref_info (build2 (MEM_REF, TREE_TYPE (ref), addr, ptr), |