mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
Fix uninitialized LOOP_VINFO_LOOP_IV_COND
With uncounted loop support we can leave LOOP_VINFO_LOOP_IV_COND uninitialized but that's accessed from vect_stmt_relevant_p, unlikely to match by chance, but the following fixes it nevertheless. * tree-vect-loop.cc (_loop_vec_info::_loop_vec_info): Initialize loop_iv_cond given it's no longer always initialized ... (vect_create_loop_vinfo): ... here. Fix formatting.
This commit is contained in:
committed by
Richard Biener
parent
5f1024922d
commit
cc3370077c
@@ -763,6 +763,7 @@ _loop_vec_info::_loop_vec_info (class loop *loop_in, vec_info_shared *shared)
|
||||
peeling_for_gaps (false),
|
||||
peeling_for_niter (false),
|
||||
early_breaks (false),
|
||||
loop_iv_cond (NULL),
|
||||
user_unroll (false),
|
||||
no_data_dependencies (false),
|
||||
has_mask_store (false),
|
||||
@@ -1693,7 +1694,7 @@ vect_create_loop_vinfo (class loop *loop, vec_info_shared *shared,
|
||||
|
||||
unsigned cond_id = 0;
|
||||
if (!LOOP_VINFO_NITERS_UNCOUNTED_P (loop_vinfo))
|
||||
LOOP_VINFO_LOOP_IV_COND (loop_vinfo) = info->conds[cond_id++];
|
||||
LOOP_VINFO_LOOP_IV_COND (loop_vinfo) = info->conds[cond_id++];
|
||||
|
||||
for (; cond_id < info->conds.length (); cond_id ++)
|
||||
LOOP_VINFO_LOOP_CONDS (loop_vinfo).safe_push (info->conds[cond_id]);
|
||||
|
||||
Reference in New Issue
Block a user