projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65cfb82
)
add missing condition
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 2 Jun 2008 15:05:44 +0000
(15:05 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 2 Jun 2008 15:05:44 +0000
(15:05 +0000)
[r19942]
ir/ir/iropt.c
patch
|
blob
|
history
diff --git
a/ir/ir/iropt.c
b/ir/ir/iropt.c
index
c991c20
..
8dc2c5a
100644
(file)
--- a/
ir/ir/iropt.c
+++ b/
ir/ir/iropt.c
@@
-1276,10
+1276,12
@@
restart:
}
}
if (is_Conv(b)) {
- if (get_Conv_strict(n))
- set_Conv_strict(b, 1);
- n = b; /* ConvA(ConvB(ConvA(...))) == ConvA(...) */
- DBG_OPT_ALGSIM1(oldn, a, b, n, FS_OPT_CONV);
+ if (smaller_mode(b_mode, a_mode)) {
+ if (get_Conv_strict(n))
+ set_Conv_strict(b, 1);
+ n = b; /* ConvA(ConvB(ConvA(...))) == ConvA(...) */
+ DBG_OPT_ALGSIM1(oldn, a, b, n, FS_OPT_CONV);
+ }
}
}
}