projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4821be3
)
move all constlike nodes to right for Cmps
author
Matthias Braun
<matze@braunis.de>
Thu, 11 Oct 2007 15:07:03 +0000
(15:07 +0000)
committer
Matthias Braun
<matze@braunis.de>
Thu, 11 Oct 2007 15:07:03 +0000
(15:07 +0000)
[r16150]
ir/ir/iropt.c
patch
|
blob
|
history
diff --git
a/ir/ir/iropt.c
b/ir/ir/iropt.c
index
b98c922
..
30551dc
100644
(file)
--- a/
ir/ir/iropt.c
+++ b/
ir/ir/iropt.c
@@
-3657,10
+3657,12
@@
static ir_node *transform_node_Proj_Cmp(ir_node *proj) {
*/
if (is_Const(right)) {
c = right;
- } else if (is_
Const
(left)) {
+ } else if (is_
irn_constlike
(left)) {
c = left;
left = right;
right = c;
+ if(!is_Const(c))
+ c = NULL;
proj_nr = get_inversed_pnc(proj_nr);
changed |= 1;