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
cf9188c1
Commit
cf9188c1
authored
Jan 24, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(sparc_address_cost): Delete.
From-SVN: r6424
parent
d10b5bca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
+0
-33
gcc/config/sparc/sparc.c
+0
-33
No files found.
gcc/config/sparc/sparc.c
View file @
cf9188c1
...
...
@@ -821,39 +821,6 @@ finalize_pic ()
emit_insn
(
gen_rtx
(
USE
,
VOIDmode
,
pic_offset_table_rtx
));
}
/* For the SPARC, REG and REG+CONST is cost 0, REG+REG is cost 1,
and addresses involving symbolic constants are cost 2.
We make REG+REG slightly more expensive because it might keep
a register live for longer than we might like.
PIC addresses are very expensive.
It is no coincidence that this has the same structure
as GO_IF_LEGITIMATE_ADDRESS. */
int
sparc_address_cost
(
X
)
rtx
X
;
{
#if 0
/* Handled before calling here. */
if (GET_CODE (X) == REG)
{ return 1; }
#endif
if
(
GET_CODE
(
X
)
==
PLUS
)
{
if
(
GET_CODE
(
XEXP
(
X
,
0
))
==
REG
&&
GET_CODE
(
XEXP
(
X
,
1
))
==
REG
)
return
2
;
return
1
;
}
else
if
(
GET_CODE
(
X
)
==
LO_SUM
)
return
1
;
else
if
(
GET_CODE
(
X
)
==
HIGH
)
return
2
;
return
4
;
}
/* Emit insns to move operands[1] into operands[0].
Return 1 if we have written out everything that needs to be done to
...
...
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