------- Comment #9 from ebotcazou at gcc dot gnu dot org 2007-07-13 15:48 ------- And of course the naive patch:
[EMAIL PROTECTED]:~/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