nv50/ir/opt: don't regard OP_WRSV as dead code
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 7 Feb 2012 21:39:20 +0000 (22:39 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 14 Apr 2012 19:54:03 +0000 (21:54 +0200)
src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp

index 2cca44921a5c9bacb605aeb2eed681999066e8bc..85e08579714c04fcc2cc163f309727f4f59224a9 100644 (file)
@@ -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)