From: Francisco Jerez Date: Tue, 15 Nov 2011 14:58:04 +0000 (+0100) Subject: nv50/ir: Fix up insertion of PHI instructions using bb->insertHead(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab382fbc35f6fd007dc278fcf4bc0dd3c0987a60;p=mesa.git nv50/ir: Fix up insertion of PHI instructions using bb->insertHead(). --- 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;