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
bba30111
Commit
bba30111
authored
Apr 16, 2007
by
Christian Würdig
Browse files
fixed assure constraint (skip Proj)
[r12702]
parent
310e8f29
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/belower.c
View file @
bba30111
...
...
@@ -516,7 +516,7 @@ static int get_n_out_edges(const ir_node *irn) {
return
cnt
;
}
static
ir_node
*
belower_skip_proj
(
ir_node
*
irn
)
{
static
INLINE
ir_node
*
belower_skip_proj
(
ir_node
*
irn
)
{
while
(
is_Proj
(
irn
))
irn
=
get_Proj_pred
(
irn
);
return
irn
;
...
...
@@ -622,7 +622,7 @@ static void assure_different_constraints(ir_node *irn, constraint_env_t *env) {
req
=
arch_get_register_req
(
env
->
birg
->
main_env
->
arch_env
,
irn
,
-
1
);
if
(
arch_register_req_is
(
req
,
should_be_different
))
{
ir_node
*
different_from
=
get_irn_n
(
irn
,
req
->
other_different
);
ir_node
*
different_from
=
get_irn_n
(
belower_skip_proj
(
irn
)
,
req
->
other_different
);
gen_assure_different_pattern
(
irn
,
different_from
,
env
);
}
else
if
(
arch_register_req_is
(
req
,
should_be_different_from_all
))
{
int
i
,
n
=
get_irn_arity
(
belower_skip_proj
(
irn
));
...
...
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