fix vectorizable_condition ICE with EXTRACT_LAST_REDUCTION
The previous reorg missed a guard around the else clause access. 2020-06-12 Richard Biener <rguenther@suse.de> PR tree-optimization/95633 * tree-vect-stmts.c (vectorizable_condition): Properly guard the vec_else_clause access with EXTRACT_LAST_REDUCTION.
This commit is contained in:
parent
e784f98027
commit
135a8ad3a5
1 changed files with 2 additions and 1 deletions
|
@ -9925,7 +9925,8 @@ vectorizable_condition (vec_info *vinfo,
|
|||
FOR_EACH_VEC_ELT (vec_oprnds0, i, vec_cond_lhs)
|
||||
{
|
||||
vec_then_clause = vec_oprnds2[i];
|
||||
vec_else_clause = vec_oprnds3[i];
|
||||
if (reduction_type != EXTRACT_LAST_REDUCTION)
|
||||
vec_else_clause = vec_oprnds3[i];
|
||||
|
||||
if (swap_cond_operands)
|
||||
std::swap (vec_then_clause, vec_else_clause);
|
||||
|
|
Loading…
Add table
Reference in a new issue