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
b937e42e
Commit
b937e42e
authored
Jan 02, 2013
by
Christoph Mallon
Browse files
belower: Simplify test in push_through_perm().
parent
09e9c038
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/belower.c
View file @
b937e42e
...
...
@@ -851,6 +851,10 @@ found_front:
if
(
node
==
frontier
)
break
;
be_foreach_use
(
node
,
cls
,
in_req
,
value
,
value_req
,
goto
done
;
);
const
arch_register_req_t
*
req
;
int
input
=
-
1
;
ir_node
*
proj
=
NULL
;
...
...
@@ -873,14 +877,6 @@ found_front:
if
(
req
->
type
!=
arch_register_req_type_normal
&&
req
->
type
!=
arch_register_req_type_should_be_same
)
break
;
for
(
i
=
get_irn_arity
(
node
)
-
1
;
i
>=
0
;
--
i
)
{
ir_node
*
opop
=
get_irn_n
(
node
,
i
);
if
(
arch_irn_consider_in_reg_alloc
(
cls
,
opop
))
{
break
;
}
}
if
(
i
>=
0
)
break
;
DBG
((
dbg_permmove
,
LEVEL_2
,
"
\t
moving %+F after %+F, killing %+F
\n
"
,
node
,
perm
,
proj
));
...
...
@@ -897,6 +893,7 @@ found_front:
bitset_set
(
moved
,
input
);
n_moved
++
;
}
done:
/* well, we could not push anything through the perm */
if
(
n_moved
==
0
)
...
...
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