diff options
author | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-31 02:32:20 +0000 |
---|---|---|
committer | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-31 02:32:20 +0000 |
commit | 74560f89e4bf30b8435d1d1e4d93f28a781e8235 (patch) | |
tree | a2331c06f43ff2cb30e6331e35f33ebc5d0250da /gcc/tree-ssa-loop-im.c | |
parent | b797154e4efc9a4005016639715cc0b6330bf97a (diff) | |
download | gcc-74560f89e4bf30b8435d1d1e4d93f28a781e8235.tar.gz |
* tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166103 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
-rw-r--r-- | gcc/tree-ssa-loop-im.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gcc/tree-ssa-loop-im.c b/gcc/tree-ssa-loop-im.c index 1894572000e..45902e5bafd 100644 --- a/gcc/tree-ssa-loop-im.c +++ b/gcc/tree-ssa-loop-im.c @@ -910,19 +910,7 @@ rewrite_reciprocal (gimple_stmt_iterator *bsi) add_referenced_var (var); DECL_GIMPLE_REG_P (var) = 1; - /* For vectors, create a VECTOR_CST full of 1's. */ - if (TREE_CODE (type) == VECTOR_TYPE) - { - int i, len; - tree list = NULL_TREE; - real_one = build_real (TREE_TYPE (type), dconst1); - len = TYPE_VECTOR_SUBPARTS (type); - for (i = 0; i < len; i++) - list = tree_cons (NULL, real_one, list); - real_one = build_vector (type, list); - } - else - real_one = build_real (type, dconst1); + real_one = build_one_cst (type); stmt1 = gimple_build_assign_with_ops (RDIV_EXPR, var, real_one, gimple_assign_rhs2 (stmt)); |