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
806f3683
Commit
806f3683
authored
Feb 01, 2016
by
Christoph Mallon
Browse files
ia32: Hoist configuration check.
parent
5a9e29dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_optimize.c
View file @
806f3683
...
...
@@ -853,8 +853,6 @@ static void peephole_ia32_Const(ir_node *node)
/* try to transform a mov 0, reg to xor reg reg */
if
(
attr
->
imm
.
offset
!=
0
||
attr
->
imm
.
entity
!=
NULL
)
return
;
if
(
ia32_cg_config
.
use_mov_0
)
return
;
/* xor destroys the flags, so no-one must be using them */
if
(
be_peephole_get_value
(
REG_EFLAGS
)
!=
NULL
)
return
;
...
...
@@ -1065,7 +1063,8 @@ void ia32_peephole_optimization(ir_graph *irg)
/* pass 2 */
ir_clear_opcodes_generic_func
();
register_peephole_optimization
(
op_ia32_And
,
peephole_ia32_And
);
register_peephole_optimization
(
op_ia32_Const
,
peephole_ia32_Const
);
if
(
!
ia32_cg_config
.
use_mov_0
)
register_peephole_optimization
(
op_ia32_Const
,
peephole_ia32_Const
);
register_peephole_optimization
(
op_be_IncSP
,
peephole_be_IncSP
);
register_peephole_optimization
(
op_ia32_Or
,
peephole_ia32_Or
);
register_peephole_optimization
(
op_ia32_Test
,
peephole_ia32_Test
);
...
...
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