* @brief This file contains functions for matching firm graphs for
* nodes that can be used as address mode for x86 instructions
* @author Matthias Braun
- * @version $Id$
*/
#include "config.h"
#include "iredges_t.h"
#include "irgwalk.h"
-#include "../benode.h"
-#include "../belive.h"
+#include "benode.h"
+#include "belive.h"
#define AGGRESSIVE_AM
#ifdef DEBUG_libfirm
ir_fprintf(stderr,
"Optimisation warning tarval of %+F(%+F) is not a long.\n",
- node, current_ir_graph);
+ node, get_irn_irg(node));
#endif
return false;
}
*/
static int value_last_used_here(be_lv_t *lv, ir_node *here, ir_node *value)
{
- ir_node *block = get_nodes_block(here);
- const ir_edge_t *edge;
+ ir_node *block = get_nodes_block(here);
/* If the value is live end it is for sure it does not die here */
if (be_is_live_end(lv, block, value)) return 0;
void ia32_calculate_non_address_mode_nodes(ir_graph *irg)
{
- be_lv_t *lv = be_assure_liveness(irg);
+ be_lv_t *lv;
+
+ be_assure_live_chk(irg);
+ lv = be_get_irg_liveness(irg);
non_address_mode_nodes = bitset_malloc(get_irg_last_idx(irg));