return;
}
- poly_uint64 base_offset;
- unsigned HOST_WIDE_INT const_base_offset;
- tree base_base = strip_offset (base, &base_offset);
- if (!base_offset.is_constant (&const_base_offset))
+ tree base_offset;
+ tree base_base;
+ split_constant_offset (base, &base_base, &base_offset);
+ if (!cst_and_fits_in_hwi (base_offset))
return;
+ unsigned HOST_WIDE_INT const_base_offset = int_cst_value (base_offset);
struct builtin_info *builtin;
builtin = alloc_builtin (dr, NULL, base, NULL_TREE, size);
return res;
}
+static tree
+strip_offset (tree expr, poly_uint64_pod *offset);
+
/* Allocates an induction variable with given initial value BASE and step STEP
for loop LOOP. NO_OVERFLOW implies the iv doesn't overflow. */
/* Strips constant offsets from EXPR and stores them to OFFSET. */
-tree
+static tree
strip_offset (tree expr, poly_uint64_pod *offset)
{
poly_int64 off;
extern bool contains_abnormal_ssa_name_p (tree);
extern class loop *outermost_invariant_loop_for_expr (class loop *, tree);
extern bool expr_invariant_in_loop_p (class loop *, tree);
-extern tree strip_offset (tree, poly_uint64_pod *);
bool may_be_nonaddressable_p (tree expr);
void tree_ssa_iv_optimize (void);