Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
8e8e423f
Commit
8e8e423f
authored
14 years ago
by
Nathan Froyd
Committed by
Nathan Froyd
14 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
From-SVN: r166103
parent
b9acc9f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
13 deletions
+5
-13
gcc/ChangeLog
+4
-0
gcc/tree-ssa-loop-im.c
+1
-13
No files found.
gcc/ChangeLog
View file @
8e8e423f
2010
-
10
-
30
Nathan
Froyd
<
froydnj
@codesourcery
.
com
>
*
tree
-
ssa
-
loop
-
im
.
c
(
rewrite_reciprocal
)
:
Use
build_one_cst
.
2010
-
10
-
30
Nathan
Froyd
<
froydnj
@codesourcery
.
com
>
*
fold
-
const
.
c
(
build_zero_vector
)
:
Use
build_vector_from_val
.
*
tree
-
vect
-
loop
.
c
(
get_initial_def_for_induction
)
:
Likewise
.
(
get_initial_def_for_reduction
)
:
Likewise
.
This diff is collapsed.
Click to expand it.
gcc/tree-ssa-loop-im.c
View file @
8e8e423f
...
...
@@ -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
));
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment