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
23832c1a
Commit
23832c1a
authored
Aug 02, 2015
by
Christoph Mallon
Browse files
ia32: Remove pointless check.
IncSP can only have %esp assigned.
parent
89688f61
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_optimize.c
View file @
23832c1a
...
...
@@ -644,8 +644,6 @@ static ir_node *create_pop(dbg_info *dbgi, ir_node *block,
*/
static
void
peephole_be_IncSP
(
ir_node
*
node
)
{
const
arch_register_t
*
esp
=
&
ia32_registers
[
REG_ESP
];
/* first optimize incsp->incsp combinations */
if
(
be_peephole_IncSP_IncSP
(
node
))
return
;
...
...
@@ -656,9 +654,6 @@ static void peephole_be_IncSP(ir_node *node)
/* transform Load->IncSP combinations to Pop where possible */
peephole_Load_IncSP_to_pop
(
node
);
if
(
arch_get_irn_register
(
node
)
!=
esp
)
return
;
/* replace IncSP -4 by Pop freereg when possible */
int
offset
=
be_get_IncSP_offset
(
node
);
if
((
offset
!=
-
8
||
ia32_cg_config
.
use_add_esp_8
)
&&
...
...
@@ -685,6 +680,8 @@ static void peephole_be_IncSP(ir_node *node)
stack
=
create_pop
(
dbgi
,
block
,
stack
,
node
,
reg
);
}
}
else
{
arch_register_t
const
*
const
esp
=
&
ia32_registers
[
REG_ESP
];
dbg_info
*
dbgi
=
get_irn_dbg_info
(
node
);
ir_node
*
block
=
get_nodes_block
(
node
);
...
...
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