Revert "i965/fs: Only sweep NOPs if register coalescing made progress."

This reverts commit f092e8951c.

Didn't mean to push this...
This commit is contained in:
Matt Turner
2014-04-15 17:27:55 -07:00
parent f092e8951c
commit 9fed627234
@@ -215,18 +215,17 @@ fs_visitor::register_coalesce()
reg_from = -1;
}
if (progress) {
foreach_list_safe(node, &this->instructions) {
fs_inst *inst = (fs_inst *)node;
foreach_list_safe(node, &this->instructions) {
fs_inst *inst = (fs_inst *)node;
if (inst->opcode == BRW_OPCODE_NOP) {
inst->remove();
progress = true;
}
if (inst->opcode == BRW_OPCODE_NOP) {
inst->remove();
progress = true;
}
invalidate_live_intervals();
}
if (progress)
invalidate_live_intervals();
return progress;
}