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
0042c1c2
Commit
0042c1c2
authored
Feb 11, 2010
by
Michael Beck
Browse files
Kicked complicated but useless if.
[r27121]
parent
c015328a
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ana/vrp.c
View file @
0042c1c2
...
...
@@ -624,24 +624,12 @@ pn_Cmp vrp_cmp(ir_node *left, ir_node *right) {
return
pn_Cmp_False
;
}
if
(
!
(
left
->
vrp
.
range_type
==
VRP_UNDEFINED
||
left
->
vrp
.
range_type
==
VRP_VARYING
)
&&
!
(
right
->
vrp
.
range_type
==
VRP_UNDEFINED
||
right
->
vrp
.
range_type
==
VRP_VARYING
))
{
tarval
*
lefttop
=
left
->
vrp
.
range_top
;
tarval
*
leftbottom
=
left
->
vrp
.
range_bottom
;
tarval
*
righttop
=
right
->
vrp
.
range_top
;
tarval
*
rightbottom
=
right
->
vrp
.
range_bottom
;
if
(
left
->
vrp
.
range_type
==
VRP_RANGE
&&
right
->
vrp
.
range_type
==
VRP_RANGE
)
{
if
(
tarval_cmp
(
lefttop
,
rightbottom
)
==
pn_Cmp_Lt
)
{
return
pn_Cmp_Lt
;
}
if
(
tarval_cmp
(
leftbottom
,
righttop
)
==
pn_Cmp_Gt
)
{
return
pn_Cmp_Gt
;
}
if
(
left
->
vrp
.
range_type
==
VRP_RANGE
&&
right
->
vrp
.
range_type
==
VRP_RANGE
)
{
if
(
tarval_cmp
(
left
->
vrp
.
range_top
,
right
->
vrp
.
range_bottom
)
==
pn_Cmp_Lt
)
{
return
pn_Cmp_Lt
;
}
if
(
tarval_cmp
(
left
->
vrp
.
range_bottom
,
right
->
vrp
.
range_top
)
==
pn_Cmp_Gt
)
{
return
pn_Cmp_Gt
;
}
}
...
...
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