--- /dev/null
+/* { dg-do compile } */
+/* { dg-additional-options "-O3" } */
+
+short var_27;
+long test_var_5;
+int test_var_6;
+void test(short arr_11[][4][24])
+{
+ for (bool i_6 = 0;;)
+ for (int i_7; i_7;)
+ for (int i_8; i_8 < test_var_5; i_8 += 1)
+ var_27 *= test_var_6 && arr_11[2][1][i_8];
+}
while (cond_node != slp_node_instance->reduc_phis)
{
stmt_vec_info cond_info = SLP_TREE_REPRESENTATIVE (cond_node);
+ int slp_reduc_idx;
if (gimple_assign_rhs_code (cond_info->stmt) == COND_EXPR)
{
gimple *vec_stmt
ccompares.safe_push
(std::make_pair (gimple_assign_rhs1 (vec_stmt),
STMT_VINFO_REDUC_IDX (cond_info) == 2));
- }
- /* ??? We probably want to have REDUC_IDX on the SLP node?
- We have both three and four children COND_EXPR nodes
- dependent on whether the comparison is still embedded
- as GENERIC. So work backwards. */
- int slp_reduc_idx = (SLP_TREE_CHILDREN (cond_node).length () - 3
+ /* ??? We probably want to have REDUC_IDX on the SLP node?
+ We have both three and four children COND_EXPR nodes
+ dependent on whether the comparison is still embedded
+ as GENERIC. So work backwards. */
+ slp_reduc_idx = (SLP_TREE_CHILDREN (cond_node).length () - 3
+ STMT_VINFO_REDUC_IDX (cond_info));
+ }
+ else
+ slp_reduc_idx = STMT_VINFO_REDUC_IDX (cond_info);
cond_node = SLP_TREE_CHILDREN (cond_node)[slp_reduc_idx];
}
}