summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.c
diff options
context:
space:
mode:
authormatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>2007-10-22 15:29:17 +0000
committermatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>2007-10-22 15:29:17 +0000
commit0aa073dfe6e0909c430e73917411b81ded31400c (patch)
tree8102e28c36b811c04b10a0ba979e8d44c5bcbf86 /gcc/tree-ssa-phiopt.c
parente3639a0777d5346e455fa0cd9d67d3b50bf7ec97 (diff)
downloadgcc-0aa073dfe6e0909c430e73917411b81ded31400c.tar.gz
PR tree-optimization/33855
* tree-ssa-phiopt.c (cond_store_replacement): Handle * COMPLEX_TYPE and VECTOR_TYPE. * gcc.c-torture/compile/pr33855.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129551 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
-rw-r--r--gcc/tree-ssa-phiopt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c
index a8376cf5885..6df8420c22f 100644
--- a/gcc/tree-ssa-phiopt.c
+++ b/gcc/tree-ssa-phiopt.c
@@ -1287,6 +1287,9 @@ cond_store_replacement (basic_block middle_bb, basic_block join_bb,
{
condstoretemp = create_tmp_var (TREE_TYPE (lhs), "cstore");
get_var_ann (condstoretemp);
+ if (TREE_CODE (TREE_TYPE (lhs)) == COMPLEX_TYPE
+ || TREE_CODE (TREE_TYPE (lhs)) == VECTOR_TYPE)
+ DECL_GIMPLE_REG_P (condstoretemp) = 1;
}
add_referenced_var (condstoretemp);