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
d5e2075d
Commit
d5e2075d
authored
Dec 14, 1999
by
Jan Hubicka
Committed by
Jan Hubicka
Dec 14, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* regclass.c (record_reg_classes): Handle INOUT operands propertly.
From-SVN: r30912
parent
5a5e9ce6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
10 deletions
+26
-10
gcc/ChangeLog
+4
-0
gcc/regclass.c
+22
-10
No files found.
gcc/ChangeLog
View file @
d5e2075d
Tue
Dec
14
12
:
07
:
29
MET
1999
Jan
Hubicka
<
hubicka
@freesoft
.
cz
>
*
regclass
.
c
(
record_reg_classes
)
:
Handle
INOUT
operands
propertly
.
1999
-
12
-
14
Jakub
Jelinek
<
jakub
@redhat
.
com
>
*
config
/
sparc
/
linux64
.
h
(
TARGET_LIVE_G0
,
...
...
gcc/regclass.c
View file @
d5e2075d
...
...
@@ -1306,18 +1306,24 @@ record_reg_classes (n_alts, n_ops, ops, modes, subreg_changes_size,
for
(
class
=
0
;
class
<
N_REG_CLASSES
;
class
++
)
pp
->
cost
[
class
]
=
(
recog_data
.
operand_type
[
i
]
==
OP_IN
=
(
(
recog_data
.
operand_type
[
i
]
!=
OP_OUT
?
may_move_in_cost
[
class
][(
int
)
classes
[
i
]]
:
may_move_out_cost
[(
int
)
classes
[
i
]][
class
]);
:
0
)
+
(
recog_data
.
operand_type
[
i
]
!=
OP_IN
?
may_move_out_cost
[(
int
)
classes
[
i
]][
class
]
:
0
));
/* If the alternative actually allows memory, make things
a bit cheaper since we won't need an extra insn to
load it. */
pp
->
mem_cost
=
(
MEMORY_MOVE_COST
(
mode
,
classes
[
i
],
recog_data
.
operand_type
[
i
]
==
OP_IN
)
-
allows_mem
[
i
]);
=
((
recog_data
.
operand_type
[
i
]
!=
OP_IN
?
MEMORY_MOVE_COST
(
mode
,
classes
[
i
],
0
)
:
0
)
+
(
recog_data
.
operand_type
[
i
]
!=
OP_OUT
?
MEMORY_MOVE_COST
(
mode
,
classes
[
i
],
1
)
:
0
)
-
allows_mem
[
i
]);
/* If we have assigned a class to this register in our
first pass, add a cost to this alternative corresponding
...
...
@@ -1527,18 +1533,24 @@ record_reg_classes (n_alts, n_ops, ops, modes, subreg_changes_size,
for
(
class
=
0
;
class
<
N_REG_CLASSES
;
class
++
)
pp
->
cost
[
class
]
=
(
recog_data
.
operand_type
[
i
]
==
OP_IN
=
(
(
recog_data
.
operand_type
[
i
]
!=
OP_OUT
?
may_move_in_cost
[
class
][(
int
)
classes
[
i
]]
:
may_move_out_cost
[(
int
)
classes
[
i
]][
class
]);
:
0
)
+
(
recog_data
.
operand_type
[
i
]
!=
OP_IN
?
may_move_out_cost
[(
int
)
classes
[
i
]][
class
]
:
0
));
/* If the alternative actually allows memory, make things
a bit cheaper since we won't need an extra insn to
load it. */
pp
->
mem_cost
=
(
MEMORY_MOVE_COST
(
mode
,
classes
[
i
],
recog_data
.
operand_type
[
i
]
==
OP_IN
)
-
allows_mem
[
i
]);
=
((
recog_data
.
operand_type
[
i
]
!=
OP_IN
?
MEMORY_MOVE_COST
(
mode
,
classes
[
i
],
0
)
:
0
)
+
(
recog_data
.
operand_type
[
i
]
!=
OP_OUT
?
MEMORY_MOVE_COST
(
mode
,
classes
[
i
],
1
)
:
0
)
-
allows_mem
[
i
]);
/* If we have assigned a class to this register in our
first pass, add a cost to this alternative corresponding
...
...
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