Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
1f8cce2e
Commit
1f8cce2e
authored
Jul 09, 2007
by
Matthias Braun
Browse files
fix condeval in when not avoiding PhiB
[r14991]
parent
f41feb83
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/condeval.c
View file @
1f8cce2e
...
@@ -45,6 +45,8 @@
...
@@ -45,6 +45,8 @@
#include "irgraph.h"
#include "irgraph.h"
#include "tv.h"
#include "tv.h"
//#define AVOID_PHIB
DEBUG_ONLY
(
static
firm_dbg_module_t
*
dbg
);
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,
...
@@ -216,7 +218,7 @@ static void copy_and_fix(const condeval_env_t *env, ir_node *block,
/* ignore control flow */
/* ignore control flow */
if
(
mode
==
mode_X
||
is_Cond
(
node
))
if
(
mode
==
mode_X
||
is_Cond
(
node
))
continue
;
continue
;
#if
1
#if
def AVOID_PHIB
/* we may not copy mode_b nodes, because this could produce phi with
/* 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
* mode_bs which can't be handled in all backends. Instead we duplicate
* the node and move it to it's users */
* 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,
...
@@ -278,8 +280,10 @@ static void copy_and_fix(const condeval_env_t *env, ir_node *block,
if
(
mode
==
mode_X
||
is_Cond
(
node
))
if
(
mode
==
mode_X
||
is_Cond
(
node
))
continue
;
continue
;
#ifdef AVOID_PHIB
if
(
mode
==
mode_b
)
if
(
mode
==
mode_b
)
continue
;
continue
;
#endif
DB
((
dbg
,
LEVEL_2
,
">> Fixing users of %+F
\n
"
,
node
));
DB
((
dbg
,
LEVEL_2
,
">> Fixing users of %+F
\n
"
,
node
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment