projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12efc34
)
Prevent optimization in case of an Eor, too.
author
Sebastian Buchwald
<Sebastian.Buchwald@kit.edu>
Fri, 15 Jul 2011 12:04:30 +0000
(14:04 +0200)
committer
Sebastian Buchwald
<Sebastian.Buchwald@kit.edu>
Fri, 15 Jul 2011 12:08:20 +0000
(14:08 +0200)
ir/ir/iropt.c
patch
|
blob
|
history
diff --git
a/ir/ir/iropt.c
b/ir/ir/iropt.c
index
e4e86f4
..
79a4dda
100644
(file)
--- a/
ir/ir/iropt.c
+++ b/
ir/ir/iropt.c
@@
-3079,7
+3079,7
@@
static ir_node *transform_node_bitop_shift(ir_node *n)
if (is_Shl(left)) {
tv_bitop = tarval_shr(tv2, tv1);
} else if (is_Shr(left)) {
- if (is_Or(n)) {
+ if (is_Or(n)
|| is_Eor(n)
) {
/*
* TODO this can be improved by checking whether
* the left shift produces an overflow