Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
a7226b13
Commit
a7226b13
authored
Dec 29, 2014
by
Christoph Mallon
Browse files
be: Create a new be_Keep with its inputs right away instead of adding one after another.
parent
dd44c83b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/benode.c
View file @
a7226b13
...
...
@@ -229,17 +229,15 @@ ir_node *be_new_Keep(ir_node *const block, int const n,
ir_node
*
const
*
const
in
)
{
ir_graph
*
irg
=
get_irn_irg
(
block
);
ir_node
*
res
=
new_ir_node
(
NULL
,
irg
,
block
,
op_be_Keep
,
mode_ANY
,
0
,
NULL
);
ir_node
*
res
=
new_ir_node
(
NULL
,
irg
,
block
,
op_be_Keep
,
mode_ANY
,
n
,
in
);
init_node_attr
(
res
,
1
,
arch_irn_flag_schedule_first
);
be_node_attr_t
*
attr
=
(
be_node_attr_t
*
)
get_irn_generic_attr
(
res
);
attr
->
exc
.
pin_state
=
op_pin_state_pinned
;
for
(
int
i
=
0
;
i
<
n
;
++
i
)
{
ir_node
*
pred
=
in
[
i
];
add_irn_n
(
res
,
pred
);
const
arch_register_req_t
*
req
=
arch_get_irn_register_req
(
pred
);
arch_register_req_t
const
*
req
=
arch_get_irn_register_req
(
in
[
i
]);
req
=
req
->
cls
!=
NULL
?
req
->
cls
->
class_req
:
arch_no_register_req
;
add
_register_req_in
(
res
,
req
);
be_node_set
_register_req_in
(
res
,
i
,
req
);
}
keep_alive
(
res
);
return
res
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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