This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r242219 - in /branches/ARM/sve-branch/gcc: gimp...
- From: rsandifo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 11 Nov 2016 17:20:59 -0000
- Subject: r242219 - in /branches/ARM/sve-branch/gcc: gimp...
Author: rsandifo
Date: Fri Nov 11 17:20:58 2016
New Revision: 242219
URL: https://gcc.gnu.org/viewcvs?rev=242219&root=gcc&view=rev
Log:
Treat VEC_{DUPLICATE,SERIES}_EXPR as gimple constants
This patch treats constant VEC_DUPLICATE_EXPR and VEC_SERIES_EXPR
expressions as gimple constants, so that they can be used in the
same situations that a (fixed-length) VECTOR_CST would.
As a result, some places that used to check CONSTANT_CLASS_P
now also need to check for TREE_CONSTANT versions of these two
codes. The patch adds a constant_tree_p helper routine for that.
Modified:
branches/ARM/sve-branch/gcc/gimple-expr.h
branches/ARM/sve-branch/gcc/gimple-match.h
branches/ARM/sve-branch/gcc/tree-ssa-loop.c
branches/ARM/sve-branch/gcc/tree-ssa-propagate.c
branches/ARM/sve-branch/gcc/tree-vect-loop.c
branches/ARM/sve-branch/gcc/tree.h