From: Christoph Bumiller Date: Tue, 7 Feb 2012 21:39:20 +0000 (+0100) Subject: nv50/ir/opt: don't regard OP_WRSV as dead code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2fc014f8c0d9339b1652f4e037aee5697142304a;p=mesa.git nv50/ir/opt: don't regard OP_WRSV as dead code --- diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp index 2cca44921a5..85e08579714 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp @@ -62,7 +62,8 @@ Instruction::isNop() const bool Instruction::isDead() const { if (op == OP_STORE || - op == OP_EXPORT) + op == OP_EXPORT || + op == OP_WRSV) return false; for (int d = 0; defExists(d); ++d)