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
ebfe71a8
Commit
ebfe71a8
authored
May 10, 2000
by
Nick Clifton
Committed by
Nick Clifton
May 10, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not bias REG_N_REFS by loop_depth when optimising for size.
From-SVN: r33833
parent
402823c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
gcc/ChangeLog
+7
-0
gcc/flow.c
+6
-3
No files found.
gcc/ChangeLog
View file @
ebfe71a8
2000
-
05
-
10
Nick
Clifton
<
nickc
@redhat
.
com
>
*
flow
.
c
(
find_auto_inc
)
:
Do
not
bias
REG_N_REFS
by
loop_depth
when
optimising
for
size
.
(
mark_used_regs
:
)
Ditto
.
(
try_pre_increment_1
)
:
Ditto
.
2000
-
05
-
10
Zack
Weinberg
<
zack
@wolery
.
cumb
.
org
>
*
cppexp
.
c
(
lex
)
:
Use
%
.
*
s
to
print
non
-
NUL
-
terminated
string
.
...
...
gcc/flow.c
View file @
ebfe71a8
...
...
@@ -4854,7 +4854,8 @@ find_auto_inc (pbi, x, insn)
/* Count an extra reference to the reg. When a reg is
incremented, spilling it is worse, so we want to make
that less likely. */
REG_N_REFS
(
regno
)
+=
pbi
->
bb
->
loop_depth
+
1
;
REG_N_REFS
(
regno
)
+=
(
optimize_size
?
1
:
pbi
->
bb
->
loop_depth
+
1
);
/* Count the increment as a setting of the register,
even though it isn't a SET in rtl. */
...
...
@@ -4935,7 +4936,8 @@ mark_used_reg (pbi, reg, cond, insn)
REG_BASIC_BLOCK
(
regno
)
=
REG_BLOCK_GLOBAL
;
/* Count (weighted) number of uses of each reg. */
REG_N_REFS
(
regno
)
+=
pbi
->
bb
->
loop_depth
+
1
;
REG_N_REFS
(
regno
)
+=
(
optimize_size
?
1
:
pbi
->
bb
->
loop_depth
+
1
);
}
}
...
...
@@ -5353,7 +5355,8 @@ try_pre_increment_1 (pbi, insn)
less likely. */
if
(
regno
>=
FIRST_PSEUDO_REGISTER
)
{
REG_N_REFS
(
regno
)
+=
pbi
->
bb
->
loop_depth
+
1
;
REG_N_REFS
(
regno
)
+=
(
optimize_size
?
1
:
pbi
->
bb
->
loop_depth
+
1
);
REG_N_SETS
(
regno
)
++
;
}
return
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