Skip to content

Commit e6322a6

Browse files
rguenthRichard Biener
authored andcommitted
TLC to vect_update_ivs_after_vectorizer
The following makes it work on the non-main exit. * tree-vect-loop-manip.cc (vect_update_ivs_after_vectorizer): Avoid explicit LOOP_VINFO_IV_EXIT reference.
1 parent ad4aded commit e6322a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/tree-vect-loop-manip.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2336,7 +2336,7 @@ vect_update_ivs_after_vectorizer (loop_vec_info loop_vinfo,
23362336
gphi_iterator gsi, gsi1;
23372337
class loop *loop = LOOP_VINFO_LOOP (loop_vinfo);
23382338
basic_block update_bb = update_e->dest;
2339-
basic_block exit_bb = LOOP_VINFO_IV_EXIT (loop_vinfo)->dest;
2339+
basic_block exit_bb = update_e->src;
23402340
gimple_stmt_iterator last_gsi = gsi_last_bb (exit_bb);
23412341

23422342
for (gsi = gsi_start_phis (loop->header), gsi1 = gsi_start_phis (update_bb);

0 commit comments

Comments
 (0)