summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2011-11-15 15:58:04 +0100
committerChristoph Bumiller <[email protected]>2012-04-14 21:54:00 +0200
commitab382fbc35f6fd007dc278fcf4bc0dd3c0987a60 (patch)
tree29b0145e9ff416d210a8c7ad0b1e0b2654666613 /src/gallium/drivers
parentfc740e7924dfa52a39de5f2b8031c2cded0fafb3 (diff)
nv50/ir: Fix up insertion of PHI instructions using bb->insertHead().
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp2
1 files changed, 1 insertions, 1 deletions
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;