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
1464632b
Commit
1464632b
authored
Feb 13, 2001
by
Jan Hubicka
Committed by
Jan Hubicka
Feb 13, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* regclass.c (init_reg_sets_1): Silence warning.
From-SVN: r39646
parent
a8083431
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
48 deletions
+56
-48
gcc/ChangeLog
+4
-0
gcc/regclass.c
+52
-48
No files found.
gcc/ChangeLog
View file @
1464632b
Tue Feb 13 23:05:42 CET 2001 Jan Hubicka <jh@suse.cz>
* regclass.c (init_reg_sets_1): Silence warning.
Tue Feb 13 22:03:07 CET 2001 Jan Hubicka <jh@suse.cz>
* i386.md (sqrt?f2): Change to expander.
...
...
gcc/regclass.c
View file @
1464632b
...
...
@@ -288,7 +288,7 @@ init_reg_sets_1 ()
{
register
unsigned
int
i
,
j
;
register
unsigned
int
/* enum machine_mode */
m
;
char
contains_reg_of_mode
[
LIM
_REG_CLASSES
]
[
MAX_MACHINE_MODE
];
char
contains_reg_of_mode
[
N
_REG_CLASSES
]
[
MAX_MACHINE_MODE
];
char
allocatable_regs_of_mode
[
MAX_MACHINE_MODE
];
/* This macro allows the fixed or call-used registers
...
...
@@ -443,53 +443,57 @@ init_reg_sets_1 ()
for
(
m
=
0
;
m
<
MAX_MACHINE_MODE
;
m
++
)
if
(
allocatable_regs_of_mode
[
m
])
for
(
i
=
0
;
i
<
N_REG_CLASSES
;
i
++
)
if
(
contains_reg_of_mode
[
i
][
m
])
for
(
j
=
0
;
j
<
N_REG_CLASSES
;
j
++
)
{
int
cost
;
enum
reg_class
*
p1
,
*
p2
;
if
(
!
contains_reg_of_mode
[
j
][
m
])
{
move_cost
[
m
][
i
][
j
]
=
65536
;
may_move_in_cost
[
m
][
i
][
j
]
=
65536
;
may_move_out_cost
[
m
][
i
][
j
]
=
65536
;
}
else
{
cost
=
i
==
j
?
2
:
REGISTER_MOVE_COST
(
m
,
i
,
j
);
for
(
p2
=
&
reg_class_subclasses
[
j
][
0
];
*
p2
!=
LIM_REG_CLASSES
;
p2
++
)
if
(
*
p2
!=
i
&&
contains_reg_of_mode
[
*
p1
][
m
])
cost
=
MAX
(
cost
,
move_cost
[
m
][
i
][
*
p2
]);
for
(
p1
=
&
reg_class_subclasses
[
i
][
0
];
*
p1
!=
LIM_REG_CLASSES
;
p1
++
)
if
(
*
p1
!=
j
&&
contains_reg_of_mode
[
*
p1
][
m
])
cost
=
MAX
(
cost
,
move_cost
[
m
][
*
p1
][
j
]);
move_cost
[
m
][
i
][
j
]
=
cost
;
if
(
reg_class_subset_p
(
i
,
j
))
may_move_in_cost
[
m
][
i
][
j
]
=
0
;
else
may_move_in_cost
[
m
][
i
][
j
]
=
cost
;
if
(
reg_class_subset_p
(
j
,
i
))
may_move_out_cost
[
m
][
i
][
j
]
=
0
;
else
may_move_out_cost
[
m
][
i
][
j
]
=
cost
;
}
}
else
for
(
j
=
0
;
j
<
N_REG_CLASSES
;
j
++
)
{
move_cost
[
m
][
i
][
j
]
=
65536
;
may_move_in_cost
[
m
][
i
][
j
]
=
65536
;
may_move_out_cost
[
m
][
i
][
j
]
=
65536
;
}
{
for
(
i
=
0
;
i
<
N_REG_CLASSES
;
i
++
)
if
(
contains_reg_of_mode
[
i
][
m
])
for
(
j
=
0
;
j
<
N_REG_CLASSES
;
j
++
)
{
int
cost
;
enum
reg_class
*
p1
,
*
p2
;
if
(
!
contains_reg_of_mode
[
j
][
m
])
{
move_cost
[
m
][
i
][
j
]
=
65536
;
may_move_in_cost
[
m
][
i
][
j
]
=
65536
;
may_move_out_cost
[
m
][
i
][
j
]
=
65536
;
}
else
{
cost
=
i
==
j
?
2
:
REGISTER_MOVE_COST
(
m
,
i
,
j
);
for
(
p2
=
&
reg_class_subclasses
[
j
][
0
];
*
p2
!=
LIM_REG_CLASSES
;
p2
++
)
if
(
*
p2
!=
i
&&
contains_reg_of_mode
[
*
p1
][
m
])
cost
=
MAX
(
cost
,
move_cost
[
m
][
i
][
*
p2
]);
for
(
p1
=
&
reg_class_subclasses
[
i
][
0
];
*
p1
!=
LIM_REG_CLASSES
;
p1
++
)
if
(
*
p1
!=
j
&&
contains_reg_of_mode
[
*
p1
][
m
])
cost
=
MAX
(
cost
,
move_cost
[
m
][
*
p1
][
j
]);
move_cost
[
m
][
i
][
j
]
=
cost
;
if
(
reg_class_subset_p
(
i
,
j
))
may_move_in_cost
[
m
][
i
][
j
]
=
0
;
else
may_move_in_cost
[
m
][
i
][
j
]
=
cost
;
if
(
reg_class_subset_p
(
j
,
i
))
may_move_out_cost
[
m
][
i
][
j
]
=
0
;
else
may_move_out_cost
[
m
][
i
][
j
]
=
cost
;
}
}
else
for
(
j
=
0
;
j
<
N_REG_CLASSES
;
j
++
)
{
move_cost
[
m
][
i
][
j
]
=
65536
;
may_move_in_cost
[
m
][
i
][
j
]
=
65536
;
may_move_out_cost
[
m
][
i
][
j
]
=
65536
;
}
}
#ifdef CLASS_CANNOT_CHANGE_MODE
{
...
...
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