projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a28a950
)
Fixes testcase opt/gzip_error
author
Andreas Zwinkau
<zwinkau@kit.edu>
Thu, 17 Feb 2011 12:56:12 +0000
(12:56 +0000)
committer
Andreas Zwinkau
<zwinkau@kit.edu>
Thu, 17 Feb 2011 12:56:12 +0000
(12:56 +0000)
The backend sometimes creates ProjM with a temporarily broken pn,
so the verifier must not check them.
[r28392]
ir/be/ia32/ia32_transform.c
patch
|
blob
|
history
diff --git
a/ir/be/ia32/ia32_transform.c
b/ir/be/ia32/ia32_transform.c
index
5b3de32
..
6832fcf
100644
(file)
--- a/
ir/be/ia32/ia32_transform.c
+++ b/
ir/be/ia32/ia32_transform.c
@@
-1498,8
+1498,13
@@
static ir_node *transform_AM_mem(ir_node *const block,
ins[n++] = be_transform_node(pred);
}
- ins[n++] = am_mem;
+ if (n==1 && ins[0] == am_mem) {
+ return am_mem;
+ /* creating a new Sync and relying on CSE may fail,
+ * if am_mem is a ProjM, which does not yet verify. */
+ }
+ ins[n++] = am_mem;
return new_r_Sync(block, n, ins);
} else {
ir_node *ins[2];