re PR tree-optimization/59050 (ICE: tree check: expected integer_cst, have nop_expr in tree_int_cst_lt, at tree.c:7083)

2013-11-11  Cong Hou  <congh@google.com>

    PR tree-optimization/59050
    * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.

From-SVN: r204683
This commit is contained in:
Cong Hou 2013-11-11 14:03:39 -05:00 committed by Cong Hou
parent b2b262e383
commit 1e56366733
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2013-11-11 Cong Hou <congh@google.com>
PR tree-optimization/59050
* tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
PR middle-end/59049

View File

@ -2669,9 +2669,9 @@ comp_dr_addr_with_seg_len_pair (const void *p1_, const void *p2_)
if (comp_res != 0)
return comp_res;
}
if (tree_int_cst_compare (p11.offset, p21.offset) < 0)
else if (tree_int_cst_compare (p11.offset, p21.offset) < 0)
return -1;
if (tree_int_cst_compare (p11.offset, p21.offset) > 0)
else if (tree_int_cst_compare (p11.offset, p21.offset) > 0)
return 1;
if (TREE_CODE (p12.offset) != INTEGER_CST
|| TREE_CODE (p22.offset) != INTEGER_CST)
@ -2680,9 +2680,9 @@ comp_dr_addr_with_seg_len_pair (const void *p1_, const void *p2_)
if (comp_res != 0)
return comp_res;
}
if (tree_int_cst_compare (p12.offset, p22.offset) < 0)
else if (tree_int_cst_compare (p12.offset, p22.offset) < 0)
return -1;
if (tree_int_cst_compare (p12.offset, p22.offset) > 0)
else if (tree_int_cst_compare (p12.offset, p22.offset) > 0)
return 1;
return 0;