This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fold vector to scalar optimization
> + if (vector_scalar_shift
> + && ((TREE_CODE (rhs2) == VECTOR_CST && (var = rhs2))
> + ||
> + (TREE_CODE (rhs2) == SSA_NAME
> + && (def_stmt = SSA_NAME_DEF_STMT (rhs2))
> + && gimple_assign_single_p (def_stmt)
> + && (var = gimple_assign_rhs1 (def_stmt))))
> + && uniform_vector_p (var, &first))
> + {
> + gimple_assign_set_rhs2 (stmt, first);
> + update_stmt (stmt);
> + rhs2 = first;
> + }
Fix the indentation on the { } block and the patch is ok.
r~