X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fexecution_frequency.c;h=8765c71649d7960fe8482e56518a17b7ea0fb92e;hb=3da5ed2598245b896255bc444aaa1768f6098cfe;hp=844ab6a3f1b0c009316ae87a4dd5d275877ba359;hpb=ea75e9d38674b468f602a0699fb64b9c01254797;p=libfirm diff --git a/ir/ana/execution_frequency.c b/ir/ana/execution_frequency.c index 844ab6a3f..8765c7164 100644 --- a/ir/ana/execution_frequency.c +++ b/ir/ana/execution_frequency.c @@ -31,6 +31,7 @@ #include "set.h" #include "pdeq.h" #include "hashptr.h" +#include "error.h" #include "irprog_t.h" #include "irgraph_t.h" @@ -265,10 +266,12 @@ static void precompute_cond_evaluation(void) /* both are exceptions */ if ((get_ProjX_probability(p0) == Cond_prob_exception_taken) && (get_ProjX_probability(p1) == Cond_prob_exception_taken) ) { - assert(0 && "I tried to avoid these!"); + panic("I tried to avoid these!"); +#if 0 /* It's a */ set_ProjX_probability(p0, Cond_prob_normal); set_ProjX_probability(p1, Cond_prob_normal); +#endif } /* p0 is exception */