This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/32705] [4.3 regression] ICE in set_ssa_val_to, at tree-ssa-sccvn.c:1022



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]