nv50/ir: fix instruction permutation logic
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 3 Dec 2015 01:24:33 +0000 (20:24 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 3 Dec 2015 01:41:38 +0000 (20:41 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_bb.cpp

index fa8ee072a925aceea4aec25776b49efe75d0f047..9f0e0733326cc2a3b23e7f4bfc852c692f8e1147 100644 (file)
@@ -291,7 +291,7 @@ void BasicBlock::permuteAdjacent(Instruction *a, Instruction *b)
 
    if (b->prev)
       b->prev->next = b;
-   if (a->prev)
+   if (a->next)
       a->next->prev = a;
 }