gimple-fold.c (fold_gimple_assign): Do not dispatch to fold () on single RHSs.
authorRichard Biener <rguenther@suse.de>
Fri, 30 Oct 2015 12:18:34 +0000 (12:18 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 30 Oct 2015 12:18:34 +0000 (12:18 +0000)
commit7524f419ae7935594e7ec85daf7cdf736a835b04
tree3269624dbefe5c8fadf56f8111a9ab750dc67096
parent04e3481107705d98ecd442657ee0b6b594e53b78
gimple-fold.c (fold_gimple_assign): Do not dispatch to fold () on single RHSs.

2015-10-30  Richard Biener  <rguenther@suse.de>

* gimple-fold.c (fold_gimple_assign): Do not dispatch to
fold () on single RHSs.  Allow CONSTRUCTORS with trailing
zeros to be folded to VECTOR_CSTs.
* tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
* fold-const.c (fold): Use build_vector_from_ctor.

From-SVN: r229574
gcc/ChangeLog
gcc/fold-const.c
gcc/gimple-fold.c
gcc/tree.c