diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2018-01-02 18:27:42 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2018-01-02 18:27:42 +0000 |
commit | 8eff75e0d2a3495c5bc182324644a080d47205ac (patch) | |
tree | 3299caf73828512dc8badce866408996c43c80bd /gcc/simplify-rtx.c | |
parent | b00cb3bfa50c5477347082a9450b4a63e4fee263 (diff) | |
download | gcc-8eff75e0d2a3495c5bc182324644a080d47205ac.zip gcc-8eff75e0d2a3495c5bc182324644a080d47205ac.tar.gz gcc-8eff75e0d2a3495c5bc182324644a080d47205ac.tar.bz2 |
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 <richard.sandiford@linaro.org>
gcc/
* simplify-rtx.c (simplify_const_binary_operation): Use
CONST_VECTOR_ELT instead of XVECEXP.
From-SVN: r256101
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r-- | gcc/simplify-rtx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index e5cfd3d..fd6cba7 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); |