Commit 7bdbfb64 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix

parent d8f62488
...@@ -476,8 +476,9 @@ static int pred_is_specific_nodeblock(const ir_node *bl, const ir_node *pred, ...@@ -476,8 +476,9 @@ static int pred_is_specific_nodeblock(const ir_node *bl, const ir_node *pred,
* @param irn The irn to check * @param irn The irn to check
* return 1 if irn is a candidate, 0 otherwise * return 1 if irn is a candidate, 0 otherwise
*/ */
static int is_addr_candidate(const ir_node *block, const ir_node *irn) { static int is_addr_candidate(const ir_node *irn) {
#ifndef AGGRESSIVE_AM #ifndef AGGRESSIVE_AM
const ir_node *block = get_nodes_block(irn);
ir_node *left, *right; ir_node *left, *right;
int n; int n;
...@@ -1165,7 +1166,7 @@ static void optimize_lea(ir_node *irn, void *env) { ...@@ -1165,7 +1166,7 @@ static void optimize_lea(ir_node *irn, void *env) {
if (is_ia32_Sub(irn) || is_ia32_Add(irn)) { if (is_ia32_Sub(irn) || is_ia32_Add(irn)) {
ir_node *res; ir_node *res;
if(!is_addr_candidate(cg, irn)) if(!is_addr_candidate(irn))
return; return;
DBG((cg->mod, LEVEL_1, "\tfound address calculation candidate %+F ... ", irn)); DBG((cg->mod, LEVEL_1, "\tfound address calculation candidate %+F ... ", irn));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment