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
69978722
Commit
69978722
authored
May 08, 2009
by
Michael Beck
Browse files
- turn while into do-while
[r25898]
parent
2099b3a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/belive.c
View file @
69978722
...
...
@@ -113,10 +113,10 @@ static inline unsigned _be_liveness_bsearch(struct _be_lv_info_t *arr, unsigned
int
lo
=
0
;
int
hi
=
n
;
if
(
n
==
0
)
if
(
n
==
0
)
return
0
;
while
(
lo
<
hi
)
{
do
{
int
md
=
lo
+
((
hi
-
lo
)
>>
1
);
unsigned
md_idx
=
payload
[
md
].
u
.
node
.
idx
;
...
...
@@ -131,12 +131,12 @@ static inline unsigned _be_liveness_bsearch(struct _be_lv_info_t *arr, unsigned
}
res
=
lo
;
}
}
while
(
lo
<
hi
);
#ifdef LV_INTESIVE_CHECKS
{
unsigned
i
;
for
(
i
=
res
;
i
<
n
;
++
i
)
for
(
i
=
res
;
i
<
n
;
++
i
)
assert
(
payload
[
i
].
u
.
node
.
idx
>=
idx
);
for
(
i
=
0
;
i
<
res
;
++
i
)
...
...
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