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
ae698e41
Commit
ae698e41
authored
Mar 27, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(stabilize_reference_1): For division and remainder, make a save_expr.
From-SVN: r3889
parent
cf1c49cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
gcc/tree.c
+8
-0
No files found.
gcc/tree.c
View file @
ae698e41
...
@@ -1940,6 +1940,14 @@ stabilize_reference_1 (e)
...
@@ -1940,6 +1940,14 @@ stabilize_reference_1 (e)
return
e
;
return
e
;
case
'2'
:
case
'2'
:
/* Division is slow and tends to be compiled with jumps,
especially the division by powers of 2 that is often
found inside of an array reference. So do it just once. */
if
(
code
==
TRUNC_DIV_EXPR
||
code
==
TRUNC_MOD_EXPR
||
code
==
FLOOR_DIV_EXPR
||
code
==
FLOOR_MOD_EXPR
||
code
==
CEIL_DIV_EXPR
||
code
==
CEIL_MOD_EXPR
||
code
==
ROUND_DIV_EXPR
||
code
==
ROUND_MOD_EXPR
)
return
save_expr
(
e
);
/* Recursively stabilize each operand. */
/* Recursively stabilize each operand. */
result
=
build_nt
(
code
,
stabilize_reference_1
(
TREE_OPERAND
(
e
,
0
)),
result
=
build_nt
(
code
,
stabilize_reference_1
(
TREE_OPERAND
(
e
,
0
)),
stabilize_reference_1
(
TREE_OPERAND
(
e
,
1
)));
stabilize_reference_1
(
TREE_OPERAND
(
e
,
1
)));
...
...
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