i965/fs: Switch to a do-while loop in copy propagation dataflow.

The fixed-point algorithm needs to run at least once, so a do-while loop
is more natural.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
Kenneth Graunke 2013-08-09 17:50:03 -07:00
parent 3c68662bb1
commit 0225dea6c4

View file

@ -162,9 +162,9 @@ fs_copy_prop_dataflow::setup_kills()
void
fs_copy_prop_dataflow::run()
{
bool cont = true;
bool cont;
while (cont) {
do {
cont = false;
for (int b = 0; b < cfg->num_blocks; b++) {
@ -194,7 +194,7 @@ fs_copy_prop_dataflow::run()
}
}
}
}
} while (cont);
}
bool