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


parent d8f62488
......@@ -476,8 +476,9 @@ static int pred_is_specific_nodeblock(const ir_node *bl, const ir_node *pred,
* @param irn The irn to check
* 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) {
const ir_node *block = get_nodes_block(irn);
ir_node *left, *right;
int n;
......@@ -1165,7 +1166,7 @@ static void optimize_lea(ir_node *irn, void *env) {
if (is_ia32_Sub(irn) || is_ia32_Add(irn)) {
ir_node *res;
if(!is_addr_candidate(cg, 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