X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeirgmod.c;h=bf6506c110ac6e0a4329d9b31b3bc5ffa3fa46b4;hb=0f758eda285960164141e7e2d81f00f898f2ae7e;hp=972de5ea9c5d5b0e444b9a1f43429c10600dc6d6;hpb=41dc42afc8d00e0f364711ed0c919e4e29cb20e4;p=libfirm diff --git a/ir/be/beirgmod.c b/ir/be/beirgmod.c index 972de5ea9..bf6506c11 100644 --- a/ir/be/beirgmod.c +++ b/ir/be/beirgmod.c @@ -22,7 +22,6 @@ * @brief Backend IRG modification routines. * @author Sebastian Hack, Daniel Grund, Matthias Braun, Christian Wuerdig * @date 04.05.2005 - * @version $Id$ * * This file contains the following IRG modifications for be routines: * - insertion of Perm nodes @@ -52,7 +51,7 @@ #include "irgraph_t.h" #include "irgopt.h" #include "irgmod.h" -#include "irprintf_t.h" +#include "irprintf.h" #include "irgwalk.h" #include "be_t.h" @@ -70,6 +69,15 @@ DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;) +static int cmp_node_nr(const void *a, const void *b) +{ + ir_node **p1 = (ir_node**)a; + ir_node **p2 = (ir_node**)b; + long n1 = get_irn_node_nr(*p1); + long n2 = get_irn_node_nr(*p2); + return (n1>n2) - (n1