machine_mode optab_op2_mode;
machine_mode vec_mode;
stmt_vec_info first_load = NULL, prev_first_load = NULL;
- bool load_p = false;
+ bool first_stmt_load_p = false, load_p = false;
/* For every stmt in NODE find its def stmt/s. */
stmt_vec_info stmt_info;
{
*node_vectype = vectype;
first_stmt_code = rhs_code;
+ first_stmt_load_p = load_p;
/* Shift arguments should be equal in all the packed stmts for a
vector shift with scalar shift operand. */
if (first_stmt_code != rhs_code
&& alt_stmt_code == ERROR_MARK)
alt_stmt_code = rhs_code;
- if (first_stmt_code != rhs_code
- && (first_stmt_code != IMAGPART_EXPR
- || rhs_code != REALPART_EXPR)
- && (first_stmt_code != REALPART_EXPR
- || rhs_code != IMAGPART_EXPR)
- /* Handle mismatches in plus/minus by computing both
- and merging the results. */
- && !((first_stmt_code == PLUS_EXPR
- || first_stmt_code == MINUS_EXPR)
- && (alt_stmt_code == PLUS_EXPR
- || alt_stmt_code == MINUS_EXPR)
- && rhs_code == alt_stmt_code)
- && !(STMT_VINFO_GROUPED_ACCESS (stmt_info)
- && (first_stmt_code == ARRAY_REF
- || first_stmt_code == BIT_FIELD_REF
- || first_stmt_code == INDIRECT_REF
- || first_stmt_code == COMPONENT_REF
- || first_stmt_code == MEM_REF)))
+ if ((first_stmt_code != rhs_code
+ && (first_stmt_code != IMAGPART_EXPR
+ || rhs_code != REALPART_EXPR)
+ && (first_stmt_code != REALPART_EXPR
+ || rhs_code != IMAGPART_EXPR)
+ /* Handle mismatches in plus/minus by computing both
+ and merging the results. */
+ && !((first_stmt_code == PLUS_EXPR
+ || first_stmt_code == MINUS_EXPR)
+ && (alt_stmt_code == PLUS_EXPR
+ || alt_stmt_code == MINUS_EXPR)
+ && rhs_code == alt_stmt_code)
+ && !(STMT_VINFO_GROUPED_ACCESS (stmt_info)
+ && (first_stmt_code == ARRAY_REF
+ || first_stmt_code == BIT_FIELD_REF
+ || first_stmt_code == INDIRECT_REF
+ || first_stmt_code == COMPONENT_REF
+ || first_stmt_code == MEM_REF)))
+ || first_stmt_load_p != load_p)
{
if (dump_enabled_p ())
{