Call simplify_gen_subreg to simplify subreg of vec_merge
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 18 Oct 2018 12:34:13 +0000 (12:34 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 18 Oct 2018 12:34:13 +0000 (05:34 -0700)
commitaff3ce41c4abecead6d05a0422d912468d2c893c
tree1ea36513884c85291ccff09c1dcc32556eb845db
parent200045a924f5b3442950ab923070b23f5085b397
Call simplify_gen_subreg to simplify subreg of vec_merge

Simplify
(subreg (vec_merge (X)
   (vector)
   (const_int ((1 << N) | M)))
(N * sizeof (outermode)))
to
(subreg (X) (N * sizeof (outermode)))

* simplify-rtx.c (simplify_subreg): Call simplify_gen_subreg
to simplify subreg of vec_merge.

From-SVN: r265267
gcc/ChangeLog
gcc/simplify-rtx.c