summaryrefslogtreecommitdiff
path: root/gcc/gimple-ssa-strength-reduction.c
diff options
context:
space:
mode:
authorzadeck <zadeck@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-23 21:23:39 +0000
committerzadeck <zadeck@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-23 21:23:39 +0000
commit087b03caccd74346e58bea10d9d8b07a4ccb3e90 (patch)
tree1d331df7f2ce83f8dd6c38a0981e02b84f5dae6a /gcc/gimple-ssa-strength-reduction.c
parente1dfbe3090ccf6cfbc7275cfdfa38f71647de3ed (diff)
downloadgcc-087b03caccd74346e58bea10d9d8b07a4ccb3e90.tar.gz
fix merge on wide-int branch
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@202845 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-ssa-strength-reduction.c')
-rw-r--r--gcc/gimple-ssa-strength-reduction.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/gimple-ssa-strength-reduction.c b/gcc/gimple-ssa-strength-reduction.c
index 7a089cd0d39..505b7d46fde 100644
--- a/gcc/gimple-ssa-strength-reduction.c
+++ b/gcc/gimple-ssa-strength-reduction.c
@@ -763,7 +763,7 @@ slsr_process_phi (gimple phi, bool speed)
int (i * S).
Otherwise, just return double int zero. */
-static double_int
+static max_wide_int
backtrace_base_for_ref (tree *pbase)
{
tree base_in = *pbase;
@@ -771,19 +771,19 @@ backtrace_base_for_ref (tree *pbase)
STRIP_NOPS (base_in);
if (TREE_CODE (base_in) != SSA_NAME)
- return tree_to_double_int (integer_zero_node);
+ return 0;
base_cand = base_cand_from_table (base_in);
while (base_cand && base_cand->kind != CAND_PHI)
{
if (base_cand->kind == CAND_ADD
- && base_cand->index.is_one ()
+ && base_cand->index == 1
&& TREE_CODE (base_cand->stride) == INTEGER_CST)
{
/* X = B + (1 * S), S is integer constant. */
*pbase = base_cand->base_expr;
- return tree_to_double_int (base_cand->stride);
+ return base_cand->stride;
}
else if (base_cand->kind == CAND_ADD
&& TREE_CODE (base_cand->stride) == INTEGER_CST
@@ -800,7 +800,7 @@ backtrace_base_for_ref (tree *pbase)
base_cand = NULL;
}
- return tree_to_double_int (integer_zero_node);
+ return 0;
}
/* Look for the following pattern: