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
227cd4d4
Commit
227cd4d4
authored
Feb 21, 2016
by
Christoph Mallon
Browse files
besched: Assert that the nodes in sched_comes_before() are in the same block.
parent
fd7628f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/besched.h
View file @
227cd4d4
...
@@ -146,6 +146,7 @@ void sched_replace(ir_node *old, ir_node *irn);
...
@@ -146,6 +146,7 @@ void sched_replace(ir_node *old, ir_node *irn);
*/
*/
static
inline
bool
sched_comes_before
(
const
ir_node
*
a
,
const
ir_node
*
b
)
static
inline
bool
sched_comes_before
(
const
ir_node
*
a
,
const
ir_node
*
b
)
{
{
assert
(
get_nodes_block
(
a
)
==
get_nodes_block
(
b
));
sched_timestep_t
const
as
=
sched_get_time_step
(
a
);
sched_timestep_t
const
as
=
sched_get_time_step
(
a
);
sched_timestep_t
const
bs
=
sched_get_time_step
(
b
);
sched_timestep_t
const
bs
=
sched_get_time_step
(
b
);
return
as
<
bs
;
return
as
<
bs
;
...
...
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