From 2fc014f8c0d9339b1652f4e037aee5697142304a Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Tue, 7 Feb 2012 22:39:20 +0100 Subject: [PATCH] nv50/ir/opt: don't regard OP_WRSV as dead code --- src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.30.2