*/
spill_env_t *be_new_spill_env(const be_chordal_env_t *chordal);
-/**
- * Marks a phi-node for spilling. So when reloading from this phi-node, not
- * only its value but the whole phi will be spilled.
- */
-void be_spill_phi(spill_env_t *env, ir_node *node);
-
/**
* Deletes a spill environment.
*/
void be_insert_spills_reloads(spill_env_t *senv);
+/**
+ * Marks a phi-node for spilling. So when reloading from this phi-node, not
+ * only its value but the whole phi will be spilled.
+ * This might place be_Copy nodes in predecessor blocks.
+ */
+void be_spill_phi(spill_env_t *env, ir_node *node);
+
+/**
+ * Places the necessary copies for the spilled phis in the graph
+ * This has to be done once before be_insert_spill_reloads, after
+ * all phis to spill have been marked with be_spill_phi.
+ */
+void be_place_copies(spill_env_t *env);
+
/**
* Computes the spill offsets for all spill nodes in the irg
*/