Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
5fdf3699
Commit
5fdf3699
authored
Dec 01, 2012
by
Christoph Mallon
Browse files
beabi: Remove unnecessary exclusion/inclusion of ignore registers from call/return.
parent
731e9399
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/beabi.c
View file @
5fdf3699
...
...
@@ -490,11 +490,8 @@ static ir_node *adjust_call(be_abi_irg_t *env, ir_node *irn, ir_node *curr_sp)
* checking */
continue
;
}
if
(
arch_register_is_caller_save
(
arch_env
,
reg
))
{
if
(
!
(
reg
->
type
&
arch_register_type_ignore
))
{
ARR_APP1
(
const
arch_register_t
*
,
destroyed_regs
,
reg
);
}
}
if
(
arch_register_is_caller_save
(
arch_env
,
reg
))
ARR_APP1
(
const
arch_register_t
*
,
destroyed_regs
,
reg
);
}
}
...
...
@@ -1223,7 +1220,7 @@ static ir_node *create_be_return(be_abi_irg_t *const env, ir_node *const irn)
/* Add uses of the callee save registers. */
foreach_pmap
(
env
->
regs
,
ent
)
{
const
arch_register_t
*
reg
=
(
const
arch_register_t
*
)
ent
->
key
;
if
(
(
reg
->
type
&
arch_register_type_ignore
)
||
arch_register_is_callee_save
(
arch_env
,
reg
))
if
(
arch_register_is_callee_save
(
arch_env
,
reg
))
pmap_insert
(
reg_map
,
ent
->
key
,
ent
->
value
);
}
...
...
Write
Preview
Supports
Markdown
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