bootstrap failure on tree-ssa branch
Diego Novillo
dnovillo@redhat.com
Fri Mar 7 14:36:00 GMT 2003
On Thu, 06 Mar 2003, Andreas Jaeger wrote:
> Bootstrapping the tree-ssa branch (current CVS) with checking enabled
> fails on x86-64 with:
>
This patch should fix the problem. The constant evaluation
function was returning an estimated lattice value of CONSTANT
for expressions that had aliased operands.
Diego.
* tree-ssa-ccp.c (likely_value): Don't assume CONSTANT if the
statement has virtual uses.
Index: tree-ssa-ccp.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-ccp.c,v
retrieving revision 1.1.2.62
diff -d -u -p -r1.1.2.62 tree-ssa-ccp.c
--- tree-ssa-ccp.c 28 Feb 2003 04:36:56 -0000 1.1.2.62
+++ tree-ssa-ccp.c 6 Mar 2003 19:18:25 -0000
@@ -1166,7 +1166,7 @@ likely_value (stmt)
found_constant = 1;
}
- return (found_constant || ! uses ? CONSTANT : VARYING);
+ return (found_constant || (!uses && !vuse_ops (stmt)) ? CONSTANT : VARYING);
}
More information about the Gcc-bugs
mailing list