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
b09fa787
Commit
b09fa787
authored
Mar 25, 1998
by
Jeffrey A Law
Committed by
Jeff Law
Mar 25, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pa.c (pa_adjust_cost): Avoid redundant calls to get_attr_type.
From-SVN: r18834
parent
38afd588
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
gcc/ChangeLog
+4
-0
gcc/config/pa/pa.c
+9
-5
No files found.
gcc/ChangeLog
View file @
b09fa787
Wed Mar 25 23:53:11 1998 Jeffrey A Law (law@cygnus.com)
* pa.c (pa_adjust_cost): Avoid redundant calls to get_attr_type.
Wed Mar 25 13:40:48 1998 Jim Wilson <wilson@cygnus.com>
* c-common.c (check_format_info): Initialize type, is_type. New local
...
...
gcc/config/pa/pa.c
View file @
b09fa787
...
...
@@ -3291,15 +3291,19 @@ pa_adjust_cost (insn, link, dep_insn, cost)
rtx
dep_insn
;
int
cost
;
{
enum
attr_type
attr_type
;
if
(
!
recog_memoized
(
insn
))
return
0
;
attr_type
=
get_attr_type
(
insn
);
if
(
REG_NOTE_KIND
(
link
)
==
0
)
{
/* Data dependency; DEP_INSN writes a register that INSN reads some
cycles later. */
if
(
get_attr_type
(
insn
)
==
TYPE_FPSTORE
)
if
(
attr_type
==
TYPE_FPSTORE
)
{
rtx
pat
=
PATTERN
(
insn
);
rtx
dep_pat
=
PATTERN
(
dep_insn
);
...
...
@@ -3352,7 +3356,7 @@ pa_adjust_cost (insn, link, dep_insn, cost)
/* Anti dependency; DEP_INSN reads a register that INSN writes some
cycles later. */
if
(
get_attr_type
(
insn
)
==
TYPE_FPLOAD
)
if
(
attr_type
==
TYPE_FPLOAD
)
{
rtx
pat
=
PATTERN
(
insn
);
rtx
dep_pat
=
PATTERN
(
dep_insn
);
...
...
@@ -3390,7 +3394,7 @@ pa_adjust_cost (insn, link, dep_insn, cost)
}
}
}
else
if
(
get_attr_type
(
insn
)
==
TYPE_FPALU
)
else
if
(
attr_type
==
TYPE_FPALU
)
{
rtx
pat
=
PATTERN
(
insn
);
rtx
dep_pat
=
PATTERN
(
dep_insn
);
...
...
@@ -3433,7 +3437,7 @@ pa_adjust_cost (insn, link, dep_insn, cost)
{
/* Output dependency; DEP_INSN writes a register that INSN writes some
cycles later. */
if
(
get_attr_type
(
insn
)
==
TYPE_FPLOAD
)
if
(
attr_type
==
TYPE_FPLOAD
)
{
rtx
pat
=
PATTERN
(
insn
);
rtx
dep_pat
=
PATTERN
(
dep_insn
);
...
...
@@ -3471,7 +3475,7 @@ pa_adjust_cost (insn, link, dep_insn, cost)
}
}
}
else
if
(
get_attr_type
(
insn
)
==
TYPE_FPALU
)
else
if
(
attr_type
==
TYPE_FPALU
)
{
rtx
pat
=
PATTERN
(
insn
);
rtx
dep_pat
=
PATTERN
(
dep_insn
);
...
...
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