From 1f8cce2e624d7cf78bba235b61c6dad8d8e293fb Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 9 Jul 2007 14:17:10 +0000 Subject: [PATCH] fix condeval in when not avoiding PhiB [r14991] --- ir/opt/condeval.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ir/opt/condeval.c b/ir/opt/condeval.c index 94824800f..95be8fbc8 100644 --- a/ir/opt/condeval.c +++ b/ir/opt/condeval.c @@ -45,6 +45,8 @@ #include "irgraph.h" #include "tv.h" +//#define AVOID_PHIB + DEBUG_ONLY(static firm_dbg_module_t *dbg); /** @@ -216,7 +218,7 @@ static void copy_and_fix(const condeval_env_t *env, ir_node *block, /* ignore control flow */ if (mode == mode_X || is_Cond(node)) continue; -#if 1 +#ifdef AVOID_PHIB /* we may not copy mode_b nodes, because this could produce phi with * mode_bs which can't be handled in all backends. Instead we duplicate * the node and move it to it's users */ @@ -278,8 +280,10 @@ static void copy_and_fix(const condeval_env_t *env, ir_node *block, if (mode == mode_X || is_Cond(node)) continue; +#ifdef AVOID_PHIB if (mode == mode_b) continue; +#endif DB((dbg, LEVEL_2, ">> Fixing users of %+F\n", node)); -- 2.20.1