This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32705] [4.3 regression] ICE in set_ssa_val_to, at tree-ssa-sccvn.c:1022
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jul 2007 15:48:58 -0000
- Subject: [Bug tree-optimization/32705] [4.3 regression] ICE in set_ssa_val_to, at tree-ssa-sccvn.c:1022
- References: <bug-32705-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from ebotcazou at gcc dot gnu dot org 2007-07-13 15:48 -------
And of course the naive patch:
eric@linux:~/svn/gcc/gcc> Index: tree-ssa-sccvn.c
===================================================================
--- tree-ssa-sccvn.c (revision 126547)
+++ tree-ssa-sccvn.c (working copy)
@@ -1279,7 +1279,7 @@ visit_phi (tree phi)
/* If all value numbered to the same value, the phi node has that
value. */
- if (allsame)
+ if (allsame && sameval != VN_TOP)
{
if (is_gimple_min_invariant (sameval))
{
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32705