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
43d45586
Commit
43d45586
authored
Oct 14, 2016
by
yb9976
Browse files
Simplify prevents_AM function
parent
a51d915f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_transform.c
View file @
43d45586
...
...
@@ -583,9 +583,7 @@ static bool prevents_AM(ir_node *const block, ir_node *const am_candidate,
return
false
;
if
(
is_Sync
(
other
))
{
int
i
;
for
(
i
=
get_Sync_n_preds
(
other
)
-
1
;
i
>=
0
;
--
i
)
{
for
(
int
i
=
get_Sync_n_preds
(
other
);
i
--
!=
0
;)
{
ir_node
*
const
pred
=
get_Sync_pred
(
other
,
i
);
if
(
get_nodes_block
(
pred
)
!=
block
)
...
...
@@ -602,16 +600,16 @@ static bool prevents_AM(ir_node *const block, ir_node *const am_candidate,
}
return
false
;
}
else
{
/* Do not block ourselves from getting eaten */
if
(
is_Proj
(
other
)
&&
get_Proj_pred
(
other
)
==
am_candidate
)
return
false
;
}
if
(
!
heights_reachable_in_block
(
heights
,
other
,
am_candidate
))
return
false
;
/* Do not block ourselves from getting eaten */
if
(
is_Proj
(
other
)
&&
get_Proj_pred
(
other
)
==
am_candidate
)
return
false
;
return
true
;
}
if
(
!
heights_reachable_in_block
(
heights
,
other
,
am_candidate
))
return
false
;
return
true
;
}
static
bool
cmp_can_use_sub_flags
(
ir_node
*
cmp
,
ir_node
*
sub
,
bool
*
swap
)
...
...
@@ -711,9 +709,8 @@ static bool ia32_use_source_address_mode(ir_node *block, ir_node *node,
if
(
ia32_cg_config
.
use_sse2
)
{
if
(
is_simple_sse_Const
(
node
))
return
false
;
}
else
{
if
(
is_simple_x87_Const
(
node
))
return
false
;
}
else
if
(
is_simple_x87_Const
(
node
))
{
return
false
;
}
if
(
get_irn_n_edges
(
node
)
>
1
)
return
false
;
...
...
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