summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bechordal_common.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-24 15:16:30 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-24 15:23:20 +0100
commit623a89e25bce0fa58ab7cef147fc08f3a56ead6b (patch)
tree511390d3f5a102f8e6de6263d8f2318818fb701b /ir/be/bechordal_common.c
parent7081067d3b4017a9171d997ee677e03804209965 (diff)
be: Change insert_Perm_after() to insert_Perm_before().
The operation we want to perform is to insert a Perm before a node.
Diffstat (limited to 'ir/be/bechordal_common.c')
-rw-r--r--ir/be/bechordal_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/bechordal_common.c b/ir/be/bechordal_common.c
index aafebe6..90145a9 100644
--- a/ir/be/bechordal_common.c
+++ b/ir/be/bechordal_common.c
@@ -230,9 +230,9 @@ ir_node *pre_process_constraints(be_chordal_env_t *env, be_insn_t **the_insn)
* Make the Perm, recompute liveness and re-scan the insn since the
* in operands are now the Projs of the Perm.
*/
- perm = insert_Perm_after(env->irg, env->cls, sched_prev(insn->irn));
+ perm = insert_Perm_before(env->irg, env->cls, insn->irn);
- /* Registers are propagated by insert_Perm_after(). Clean them here! */
+ /* Registers are propagated by insert_Perm_before(). Clean them here! */
if (perm == NULL)
return NULL;