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
f6516aee
Commit
f6516aee
authored
Jan 31, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(find_best_addr): Limit number of cse_gen_binary calls to
20 per iteration. From-SVN: r6449
parent
239b043b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
gcc/cse.c
+9
-1
No files found.
gcc/cse.c
View file @
f6516aee
...
@@ -2649,9 +2649,17 @@ find_best_addr (insn, loc)
...
@@ -2649,9 +2649,17 @@ find_best_addr (insn, loc)
int
best_rtx_cost
=
(
COST
(
*
loc
)
+
1
)
>>
1
;
int
best_rtx_cost
=
(
COST
(
*
loc
)
+
1
)
>>
1
;
struct
table_elt
*
best_elt
=
elt
;
struct
table_elt
*
best_elt
=
elt
;
rtx
best_rtx
=
*
loc
;
rtx
best_rtx
=
*
loc
;
int
count
;
/* This is at worst case an O(n^2) algorithm, so limit our search
to the first 32 elements on the list. This avoids trouble
compiling code with very long basic blocks that can easily
call cse_gen_binary so many times that we run out of memory. */
found_better
=
0
;
found_better
=
0
;
for
(
p
=
elt
->
first_same_value
;
p
;
p
=
p
->
next_same_value
)
for
(
p
=
elt
->
first_same_value
,
count
=
0
;
p
&&
count
<
32
;
p
=
p
->
next_same_value
,
count
++
)
if
(
!
p
->
flag
if
(
!
p
->
flag
&&
(
GET_CODE
(
p
->
exp
)
==
REG
&&
(
GET_CODE
(
p
->
exp
)
==
REG
||
exp_equiv_p
(
p
->
exp
,
p
->
exp
,
1
,
0
)))
||
exp_equiv_p
(
p
->
exp
,
p
->
exp
,
1
,
0
)))
...
...
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