From ab382fbc35f6fd007dc278fcf4bc0dd3c0987a60 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Tue, 15 Nov 2011 15:58:04 +0100 Subject: nv50/ir: Fix up insertion of PHI instructions using bb->insertHead(). --- src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp index fb4188870a6..aafc7cb1a8c 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp @@ -91,7 +91,7 @@ BasicBlock::insertHead(Instruction *inst) insertBefore(phi, inst); } else { if (entry) { - insertBefore(entry, phi); + insertBefore(entry, inst); } else { assert(!exit); phi = exit = inst; -- cgit v1.2.3