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
a251ffd0
Commit
a251ffd0
authored
Feb 12, 1994
by
Torbjorn Granlund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ppc_adjust_cost): New function. Adjust for TYPE_JMPREG.
From-SVN: r6535
parent
324e52cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
gcc/config/rs6000/rs6000.c
+34
-0
No files found.
gcc/config/rs6000/rs6000.c
View file @
a251ffd0
...
@@ -1999,3 +1999,37 @@ output_function_profiler (file, labelno)
...
@@ -1999,3 +1999,37 @@ output_function_profiler (file, labelno)
for
(
i
=
3
,
j
=
30
;
i
<=
last_parm_reg
;
i
++
,
j
--
)
for
(
i
=
3
,
j
=
30
;
i
<=
last_parm_reg
;
i
++
,
j
--
)
fprintf
(
file
,
"
\t
ai %d,%d,0
\n
"
,
i
,
j
);
fprintf
(
file
,
"
\t
ai %d,%d,0
\n
"
,
i
,
j
);
}
}
/* Adjust the cost of a scheduling dependency. Return the new cost of
a dependency LINK or INSN on DEP_INSN. COST is the current cost. */
int
ppc_adjust_cost
(
insn
,
link
,
dep_insn
,
cost
)
rtx
insn
;
rtx
link
;
rtx
dep_insn
;
int
cost
;
{
if
(
!
recog_memoized
(
insn
))
return
0
;
if
(
REG_NOTE_KIND
(
link
)
!=
0
)
return
0
;
if
(
REG_NOTE_KIND
(
link
)
==
0
)
{
/* Data dependency; DEP_INSN writes a register that INSN reads some
cycles later. */
/* Tell the first scheduling pass about the latency between a mtctr
and bctr (and mtlr and br/blr). The first scheduling pass will not
know about this latency since the mtctr instruction, which has the
latency associated to it, will be generated by reload. */
if
(
get_attr_type
(
insn
)
==
TYPE_JMPREG
)
return
TARGET_POWER
?
5
:
4
;
/* Fall out to return default cost. */
}
return
cost
;
}
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