re PR middle-end/54759 (segfault for gcc.dg/vect/pr49093.c on Solaris)
2012-10-01 Dehao Chen <dehao@google.com> PR middle-end/54759 * gcc/tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Use LOCATION_LOCUS to compare with UNKNOWN_LOCATION. (slpeel_tree_peel_loop_to_edge): Likewise. * gcc/tree-vectorizer.c (vectorize_loops): Likewise. From-SVN: r191931
This commit is contained in:
parent
83ddb39f04
commit
84df911b45
|
@ -1,3 +1,11 @@
|
|||
2012-10-01 Dehao Chen <dehao@google.com>
|
||||
|
||||
PR middle-end/54759
|
||||
* gcc/tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Use
|
||||
LOCATION_LOCUS to compare with UNKNOWN_LOCATION.
|
||||
(slpeel_tree_peel_loop_to_edge): Likewise.
|
||||
* gcc/tree-vectorizer.c (vectorize_loops): Likewise.
|
||||
|
||||
2012-10-01 Andrew MacLeod <amacleod@redhat.com>
|
||||
|
||||
PR target/54087
|
||||
|
|
|
@ -794,6 +794,7 @@ slpeel_make_loop_iterate_ntimes (struct loop *loop, tree niters)
|
|||
loop_loc = find_loop_location (loop);
|
||||
if (dump_kind_p (MSG_NOTE))
|
||||
{
|
||||
if (LOCATION_LOCUS (loop_loc) != UNKNOWN_LOC)
|
||||
dump_printf (MSG_NOTE, "\nloop at %s:%d: ", LOC_FILE (loop_loc),
|
||||
LOC_LINE (loop_loc));
|
||||
dump_gimple_stmt (MSG_NOTE, TDF_SLIM, cond_stmt, 0);
|
||||
|
|
|
@ -106,7 +106,8 @@ vectorize_loops (void)
|
|||
{
|
||||
loop_vec_info loop_vinfo;
|
||||
vect_location = find_loop_location (loop);
|
||||
if (vect_location != UNKNOWN_LOC && dump_kind_p (MSG_ALL))
|
||||
if (LOCATION_LOCUS (vect_location) != UNKNOWN_LOC
|
||||
&& dump_kind_p (MSG_ALL))
|
||||
dump_printf (MSG_ALL, "\nAnalyzing loop at %s:%d\n",
|
||||
LOC_FILE (vect_location), LOC_LINE (vect_location));
|
||||
|
||||
|
@ -116,7 +117,8 @@ vectorize_loops (void)
|
|||
if (!loop_vinfo || !LOOP_VINFO_VECTORIZABLE_P (loop_vinfo))
|
||||
continue;
|
||||
|
||||
if (vect_location != UNKNOWN_LOC && dump_kind_p (MSG_ALL))
|
||||
if (LOCATION_LOCUS (vect_location) != UNKNOWN_LOC
|
||||
&& dump_kind_p (MSG_ALL))
|
||||
dump_printf (MSG_ALL, "\n\nVectorizing loop at %s:%d\n",
|
||||
LOC_FILE (vect_location), LOC_LINE (vect_location));
|
||||
vect_transform_loop (loop_vinfo);
|
||||
|
|
Loading…
Reference in New Issue