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
dabecf7e
Commit
dabecf7e
authored
Nov 21, 2010
by
Michael Beck
Browse files
Turn while loop into do-while, we know it will be executed at least once.
[r28147]
parent
3d2b5b38
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_x87.c
View file @
dabecf7e
/*
* Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
* Copyright (C) 1995-20
1
0 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
...
...
@@ -707,7 +707,7 @@ static ir_node *x87_create_fpop(x87_state *state, ir_node *n, int num)
ia32_x87_attr_t
*
attr
;
assert
(
num
>
0
);
while
(
num
>
0
)
{
do
{
x87_pop
(
state
);
if
(
ia32_cg_config
.
use_ffreep
)
fpop
=
new_bd_ia32_ffreep
(
NULL
,
get_nodes_block
(
n
));
...
...
@@ -721,9 +721,7 @@ static ir_node *x87_create_fpop(x87_state *state, ir_node *n, int num)
keep_alive
(
fpop
);
sched_add_before
(
n
,
fpop
);
DB
((
dbg
,
LEVEL_1
,
"<<< %s %s
\n
"
,
get_irn_opname
(
fpop
),
attr
->
x87
[
0
]
->
name
));
--
num
;
}
}
while
(
--
num
>
0
);
return
fpop
;
}
/* x87_create_fpop */
...
...
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