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
8c87f107
Commit
8c87f107
authored
Dec 27, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(find_best_addr): Make sure folded address better before using.
From-SVN: r10873
parent
8e1e2862
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
gcc/cse.c
+15
-3
No files found.
gcc/cse.c
View file @
8c87f107
...
...
@@ -2660,9 +2660,21 @@ find_best_addr (insn, loc)
sometimes simplify the expression. Many simplifications
will not be valid, but some, usually applying the associative rule, will
be valid and produce better code. */
if
(
GET_CODE
(
addr
)
!=
REG
&&
validate_change
(
insn
,
loc
,
fold_rtx
(
addr
,
insn
),
0
))
addr
=
*
loc
;
if
(
GET_CODE
(
addr
)
!=
REG
)
{
rtx
folded
=
fold_rtx
(
copy_rtx
(
addr
),
NULL_RTX
);
if
(
1
#ifdef ADDRESS_COST
&&
(
ADDRESS_COST
(
folded
)
<
ADDRESS_COST
(
addr
)
||
(
ADDRESS_COST
(
folded
)
==
ADDRESS_COST
(
addr
)
&&
rtx_cost
(
folded
)
>
rtx_cost
(
addr
)))
#else
&&
rtx_cost
(
folded
)
<
rtx_cost
(
addr
)
#endif
&&
validate_change
(
insn
,
loc
,
folded
,
0
))
addr
=
folded
;
}
/* If this address is not in the hash table, we can't look for equivalences
of the whole address. Also, ignore if volatile. */
...
...
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