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
cd07844f
Commit
cd07844f
authored
Apr 05, 2016
by
Christoph Mallon
Browse files
be: Factorise and improve assertion.
parent
34f6f169
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/bessaconstr.c
View file @
cd07844f
...
...
@@ -119,6 +119,8 @@ static bool is_definition(be_ssa_construction_env_t *env, ir_node *node)
*/
static
void
introduce_definition
(
be_ssa_construction_env_t
*
env
,
ir_node
*
def
)
{
assert
(
env
->
phi_req
->
cls
==
arch_get_irn_register_req
(
def
)
->
cls
);
ir_node
*
block
=
get_nodes_block
(
def
);
constr_info
*
def_info
=
get_or_set_info
(
env
,
def
);
ir_node
*
skip
=
skip_Proj
(
def
);
...
...
@@ -409,11 +411,8 @@ void be_ssa_construction_add_copy(be_ssa_construction_env_t *env,
ir_node
*
copy
)
{
assert
(
!
env
->
iterated_domfront_calculated
);
if
(
env
->
mode
==
NULL
)
{
if
(
env
->
mode
==
NULL
)
determine_phi_req
(
env
,
copy
);
}
else
{
assert
(
env
->
mode
==
get_irn_mode
(
copy
));
}
ir_node
*
block
=
get_nodes_block
(
copy
);
if
(
!
has_definition
(
block
))
...
...
@@ -433,7 +432,6 @@ void be_ssa_construction_add_copies(be_ssa_construction_env_t *env,
ir_node
*
copy
=
copies
[
i
];
ir_node
*
block
=
get_nodes_block
(
copy
);
assert
(
env
->
mode
==
get_irn_mode
(
copy
));
if
(
!
has_definition
(
block
))
{
pdeq_putr
(
env
->
worklist
,
block
);
}
...
...
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