X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fifconv.c;h=327465a4a7e2eae927fcbd58b35426b4ae65248b;hb=34e3b8d50bce639e760da7233524a4db85c80290;hp=7e5194b08bb75a98ff563e5ee67e57e6d551236f;hpb=c6182ec265aca20d816815075d0cc05e9ed5fa7d;p=libfirm diff --git a/ir/opt/ifconv.c b/ir/opt/ifconv.c index 7e5194b08..327465a4a 100644 --- a/ir/opt/ifconv.c +++ b/ir/opt/ifconv.c @@ -1,24 +1,10 @@ /* - * Copyright (C) 1995-2008 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. */ -/* - * @file ir/opt/ifconv.c +/** + * @file * @brief If conversion * @author Christoph Mallon */ @@ -398,24 +384,11 @@ restart: if (arity == 2) { unsigned mark; -#if 0 - DB((dbg, LEVEL_1, "Welding block %+F and %+F\n", block, mux_block)); - /* copy the block-info from the Mux-block to the block before merging */ - - mark = get_Block_mark(mux_block) | get_Block_mark(block); - set_Block_mark(block, mark); - set_Block_phis(block, get_Block_phis(mux_block)); - - set_irn_in(block, get_irn_arity(mux_block), get_irn_in(mux_block) + 1); - exchange_cdep(mux_block, block); - exchange(mux_block, block); -#else DB((dbg, LEVEL_1, "Welding block %+F to %+F\n", block, mux_block)); mark = get_Block_mark(mux_block) | get_Block_mark(block); /* mark both block just to be sure, should be enough to mark mux_block */ set_Block_mark(mux_block, mark); exchange(block, mux_block); -#endif return; } else { rewire(block, i, j, new_r_Jmp(mux_block));