projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add assertions if set_cur_block() is tried for a block on a wrong irg.
[libfirm]
/
ir
/
opt
/
combo.c
diff --git
a/ir/opt/combo.c
b/ir/opt/combo.c
index
384617c
..
94c116b
100644
(file)
--- a/
ir/opt/combo.c
+++ b/
ir/opt/combo.c
@@
-845,7
+845,7
@@
static void add_to_cprop(node_t *y, environment_t *env)
irn = y->node;
if (get_irn_mode(irn) == mode_T) {
/* mode_T nodes always produce tarval_bottom, so we must explicitly
irn = y->node;
if (get_irn_mode(irn) == mode_T) {
/* mode_T nodes always produce tarval_bottom, so we must explicitly
-
add it's Proj'
s to get constant evaluation to work */
+
* add its Proj
s to get constant evaluation to work */
int i;
for (i = get_irn_n_outs(irn) - 1; i >= 0; --i) {
int i;
for (i = get_irn_n_outs(irn) - 1; i >= 0; --i) {
@@
-1813,7
+1813,7
@@
static void split_by(partition_t *X, environment_t *env)
dump_partition("split_by", X);
if (X->n_leader == 1) {
dump_partition("split_by", X);
if (X->n_leader == 1) {
- /* we have only one leader, no need to split, just check it
'
s type */
+ /* we have only one leader, no need to split, just check its type */
node_t *x = get_first_node(X);
X->type_is_T_or_C = x->type.tv == tarval_top || is_con(x->type);
return;
node_t *x = get_first_node(X);
X->type_is_T_or_C = x->type.tv == tarval_top || is_con(x->type);
return;