From: Richard Sandiford Date: Tue, 2 Jan 2018 18:27:42 +0000 (+0000) Subject: Use CONST_VECTOR_ELT instead of XVECEXP X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8eff75e0d2a3495c5bc182324644a080d47205ac;p=gcc.git Use CONST_VECTOR_ELT instead of XVECEXP This patch replaces target-independent uses of XVECEXP with uses of CONST_VECTOR_ELT. This kind of replacement isn't necessary for code specific to targets other than AArch64. 2018-01-02 Richard Sandiford gcc/ * simplify-rtx.c (simplify_const_binary_operation): Use CONST_VECTOR_ELT instead of XVECEXP. From-SVN: r256101 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 00effd0d15e..90c59764865 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-01-02 Richard Sandiford + + * simplify-rtx.c (simplify_const_binary_operation): Use + CONST_VECTOR_ELT instead of XVECEXP. + 2018-01-02 Richard Sandiford * tree-cfg.c (verify_gimple_assign_ternary): Allow the size of diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index e5cfd3d2bc2..fd6cba7ce02 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -4071,9 +4071,9 @@ simplify_const_binary_operation (enum rtx_code code, machine_mode mode, gcc_assert (op0_n_elts + op1_n_elts == n_elts); for (i = 0; i < op0_n_elts; ++i) - RTVEC_ELT (v, i) = XVECEXP (op0, 0, i); + RTVEC_ELT (v, i) = CONST_VECTOR_ELT (op0, i); for (i = 0; i < op1_n_elts; ++i) - RTVEC_ELT (v, op0_n_elts+i) = XVECEXP (op1, 0, i); + RTVEC_ELT (v, op0_n_elts+i) = CONST_VECTOR_ELT (op1, i); } return gen_rtx_CONST_VECTOR (mode, v);