Commit 953094d2 by Richard Biener Committed by Richard Biener

gimple.c (is_gimple_constant): Vector CONSTRUCTORs should not be considered a gimple constant.

2013-04-12  Richard Biener  <rguenther@suse.de>

	* gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
	not be considered a gimple constant.

From-SVN: r197845
parent f118468a
2013-04-12 Richard Biener <rguenther@suse.de>
* gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
not be considered a gimple constant.
2013-04-12 Marc Glisse <marc.glisse@inria.fr>
* fold-const.c (const_binop): Handle vector shifts by a scalar.
......
......@@ -2592,13 +2592,6 @@ is_gimple_constant (const_tree t)
case VECTOR_CST:
return true;
/* Vector constant constructors are gimple invariant. */
case CONSTRUCTOR:
if (TREE_TYPE (t) && TREE_CODE (TREE_TYPE (t)) == VECTOR_TYPE)
return TREE_CONSTANT (t);
else
return false;
default:
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment