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
24b25302
Commit
24b25302
authored
Feb 29, 2016
by
Christoph Mallon
Browse files
besched: Allow the first node in sched_comes_before() to be a block.
parent
99c28678
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/besched.h
View file @
24b25302
...
...
@@ -139,14 +139,15 @@ void sched_replace(ir_node *old, ir_node *irn);
/**
* Checks, if node @p a comes before node @p b.
* @param a A node.
* @param b Another node.
* @param a A node. May be a block, which represents the start of the
* schedule.
* @param b Another node. Must not be a block.
* @return true, if a is in front of b in the schedule, false else.
* @note Both nodes must be in the same block.
*/
static
inline
bool
sched_comes_before
(
const
ir_node
*
a
,
const
ir_node
*
b
)
{
assert
(
get_
nodes_block
(
a
)
==
get_nodes_block
(
b
));
assert
(
get_
block_const
(
a
)
==
get_nodes_block
(
b
));
sched_timestep_t
const
as
=
sched_get_time_step
(
a
);
sched_timestep_t
const
bs
=
sched_get_time_step
(
b
);
return
as
<
bs
;
...
...
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