aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-chrec.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2018-10-18 08:18:42 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2018-10-18 01:18:42 -0700
commit294973a49751a7fc2d6a7a9f2749ce851a368c04 (patch)
tree3a5176da419a68ba632eb29ab9f43065afcc053e /gcc/tree-chrec.c
parent7702ab653a903d5131bf72244ae22424ffd2e6c7 (diff)
downloadgcc-294973a49751a7fc2d6a7a9f2749ce851a368c04.zip
gcc-294973a49751a7fc2d6a7a9f2749ce851a368c04.tar.gz
gcc-294973a49751a7fc2d6a7a9f2749ce851a368c04.tar.bz2
Simplify subreg of vec_merge of vec_duplicate
We can simplify (subreg (vec_merge (vec_duplicate X) (vector) (const_int ((1 << N) | M))) (N * sizeof (X))) to X when mode of X is the same as of mode of subreg. gcc/ PR target/87537 * simplify-rtx.c (simplify_subreg): Simplify subreg of vec_merge of vec_duplicate. (test_vector_ops_duplicate): Add test for a scalar subreg of a VEC_MERGE of a VEC_DUPLICATE. gcc/testsuite/ PR target/87537 * gcc.target/i386/pr87537-1.c: New test. From-SVN: r265260
Diffstat (limited to 'gcc/tree-chrec.c')
0 files changed, 0 insertions, 0 deletions