X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fia32%2Fia32_address_mode.c;h=b824d4ca65279d65e5a5dcd12406480ccefa8d56;hb=34e3b8d50bce639e760da7233524a4db85c80290;hp=a401c7209fbbfb40276e64fbb39e542f1518754d;hpb=f8cc15664f571aa7ef89d6f6bc8d5bd2b8ca7d53;p=libfirm diff --git a/ir/be/ia32/ia32_address_mode.c b/ir/be/ia32/ia32_address_mode.c index a401c7209..b824d4ca6 100644 --- a/ir/be/ia32/ia32_address_mode.c +++ b/ir/be/ia32/ia32_address_mode.c @@ -1,20 +1,6 @@ /* - * Copyright (C) 1995-2010 University of Karlsruhe. All right reserved. - * * This file is part of libFirm. - * - * This file may be distributed and/or modified under the terms of the - * GNU General Public License version 2 as published by the Free Software - * Foundation and appearing in the file LICENSE.GPL included in the - * packaging of this file. - * - * Licensees holding valid libFirm Professional Edition licenses may use - * this file in accordance with the libFirm Commercial License. - * Agreement provided with the Software. - * - * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE - * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. + * Copyright (C) 2012 University of Karlsruhe. */ /** @@ -66,7 +52,7 @@ static bool do_is_immediate(const ir_node *node, int *symconsts, bool negate) #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; } @@ -422,8 +408,7 @@ int ia32_is_non_address_mode_node(ir_node const *node) */ 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; @@ -525,7 +510,10 @@ static void mark_non_address_nodes(ir_node *node, void *env) 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));