------- Comment #25 from ubizjak at gmail dot com  2010-01-07 09:17 -------
New patch revision in testing:

--cut here--
Index: ifcvt.c
===================================================================
--- ifcvt.c     (revision 155686)
+++ ifcvt.c     (working copy)
@@ -4087,7 +4087,8 @@ dead_or_predicable (basic_block test_bb,
          if (! note)
            continue;
          set = single_set (insn);
-         if (!set || !function_invariant_p (SET_SRC (set)))
+         if ((set && !function_invariant_p (SET_SRC (set)))
+             || !function_invariant_p (XEXP (note, 0)))
            remove_note (insn, note);
        } while (insn != end && (insn = NEXT_INSN (insn)));

--cut here--


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42511

Reply via email to