mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 08:50:09 +01:00
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:
parent
3c68662bb1
commit
0225dea6c4
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue