add missing include
[libfirm] / ir / be / bespill.c
index 852d40d..2495cc7 100644 (file)
 
 /**
  * @file
+ * @brief       Main spill driver.
  * @author      Daniel Grund, Sebastian Hack, Matthias Braun
  * @date               29.09.2005
  * @version     $Id$
- * Copyright:   (c) Universitaet Karlsruhe
- * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
  */
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #include "bespilloptions.h"
 #include "bestatevent.h"
 #include "bessaconstr.h"
+#include "beirg_t.h"
+#include "beintlive_t.h"
 
-// only rematerialise when costs are less than REMAT_COST_LIMIT
-// TODO determine a good value here...
+/* only rematerialise when costs are less than REMAT_COST_LIMIT */
+/* TODO determine a good value here... */
 #define REMAT_COST_LIMIT       10
 
 typedef struct _reloader_t reloader_t;
@@ -725,7 +726,7 @@ void be_insert_spills_reloads(spill_env_t *env) {
 
                /* go through all reloads for this spill */
                for (rld = si->reloaders; rld; rld = rld->next) {
-                       ir_node *copy; /* a reaload is a "copy" of the original value */
+                       ir_node *copy; /* a reload is a "copy" of the original value */
 
                        if (rld->rematted_node != NULL) {
                                copy = rld->rematted_node;
@@ -789,7 +790,7 @@ void be_insert_spills_reloads(spill_env_t *env) {
 #endif /* FIRM_STATISTICS */
 
        be_remove_dead_nodes_from_schedule(env->irg);
-       /* Matze: In theory be_ssa_construction should take care of the livenes...
+       /* Matze: In theory be_ssa_construction should take care of the liveness...
         * try to disable this again in the future */
        be_invalidate_liveness(env->birg);
 }