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
51a94c49
Commit
51a94c49
authored
Oct 17, 2011
by
Matthias Braun
Browse files
bepeephole: make assert about dominance less strict
parent
0f7d29a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/bepeephole.c
View file @
51a94c49
...
...
@@ -149,8 +149,8 @@ static void be_peephole_before_exchange(const ir_node *old_node,
DB
((
dbg
,
LEVEL_1
,
"About to exchange and kill %+F with %+F
\n
"
,
old_node
,
new_node
));
assert
(
sched_is_scheduled
(
new
_node
));
assert
(
value_dominates
(
new_node
,
old_node
));
assert
(
sched_is_scheduled
(
skip_Proj_const
(
old
_node
))
)
;
assert
(
sched_is_scheduled
(
skip_Proj
(
new_node
)
));
if
(
current_node
==
old_node
)
{
old_is_current
=
true
;
...
...
@@ -159,6 +159,10 @@ static void be_peephole_before_exchange(const ir_node *old_node,
* must be processed next. */
current_node
=
sched_next
(
current_node
);
assert
(
!
is_Bad
(
current_node
));
/* we can't handle liveness updates correctly when exchange current node
* with something behind it */
assert
(
value_dominates
(
skip_Proj
(
new_node
),
skip_Proj_const
(
old_node
)));
}
if
(
!
mode_is_data
(
get_irn_mode
(
old_node
)))
...
...
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