X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbelive.c;h=267a4f5e00dced1c120e7c7b782585dc20926609;hb=a3ff5d70ee39a6308a81fb4d7f53258d11f93013;hp=c223029e0369f2bc77b8d35c13b60d346bf824e6;hpb=af7c3d76bec73657d927dd7eae2db77324956cab;p=libfirm diff --git a/ir/be/belive.c b/ir/be/belive.c index c223029e0..267a4f5e0 100644 --- a/ir/be/belive.c +++ b/ir/be/belive.c @@ -43,8 +43,8 @@ #include "beutil.h" #include "belive_t.h" -#include "beirg_t.h" -#include "besched_t.h" +#include "beirg.h" +#include "besched.h" #include "bemodule.h" DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;) @@ -113,10 +113,10 @@ static inline unsigned _be_liveness_bsearch(struct _be_lv_info_t *arr, unsigned int lo = 0; int hi = n; - if(n == 0) + if (n == 0) return 0; - while(lo < hi) { + do { int md = lo + ((hi - lo) >> 1); unsigned md_idx = payload[md].u.node.idx; @@ -131,12 +131,12 @@ static inline unsigned _be_liveness_bsearch(struct _be_lv_info_t *arr, unsigned } res = lo; - } + } while (lo < hi); #ifdef LV_INTESIVE_CHECKS { unsigned i; - for(i = res; i < n; ++i) + for (i = res; i < n; ++i) assert(payload[i].u.node.idx >= idx); for(i = 0; i < res; ++i)