diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-20 17:46:39 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-20 17:46:39 +0000 |
commit | a18d30a8e57888e0861a1e07d5002517ca96dd26 (patch) | |
tree | cc32771b53fbcf125c821f1a5fe9f6e15fba1191 /gcc/tree-gimple.c | |
parent | 67313c34cc78649a549bfac9e2c4fcab34c70c98 (diff) | |
download | gcc-a18d30a8e57888e0861a1e07d5002517ca96dd26.tar.gz |
2006-12-20 Andrew Pinski <pinskia@gmail.com>
* tree-gimple.c (is_gimple_min_invariant): Treat constant vector
CONSTRUCTORs as min invariants.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120079 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-gimple.c')
-rw-r--r-- | gcc/tree-gimple.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/tree-gimple.c b/gcc/tree-gimple.c index f3a5db7c2ed..abef0e20539 100644 --- a/gcc/tree-gimple.c +++ b/gcc/tree-gimple.c @@ -183,6 +183,13 @@ is_gimple_min_invariant (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; } |