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
90f8824d
Commit
90f8824d
authored
Jul 14, 2014
by
yb9976
Browse files
Set appropriate relation.
parent
c3c7f0c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
90f8824d
...
@@ -4653,9 +4653,10 @@ static ir_node *transform_node_Cmp(ir_node *n)
...
@@ -4653,9 +4653,10 @@ static ir_node *transform_node_Cmp(ir_node *n)
}
}
if
(
x
)
{
if
(
x
)
{
cmp_x_eq_0:
;
cmp_x_eq_0:
;
left
=
x
;
left
=
x
;
right
=
new_r_Const_null
(
irg
,
mode
);
right
=
new_r_Const_null
(
irg
,
mode
);
changed
=
true
;
relation
=
is_relation_equal
?
ir_relation_equal
:
ir_relation_less_greater
;
changed
=
true
;
DBG_OPT_ALGSIM0
(
n
,
n
,
FS_OPT_CMP_OP_OP
);
DBG_OPT_ALGSIM0
(
n
,
n
,
FS_OPT_CMP_OP_OP
);
}
}
}
}
...
...
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