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 rtl-optimization/57003] [4.8/4.9/5.0 Regression] gcc breaks -O2 optimization with Wine(64) - links/info/bisect of commits included


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57003

--- Comment #25 from UroÅ Bizjak <ubizjak at gmail dot com> ---
Patch in testing:

--cut here--
Index: regcprop.c
===================================================================
--- regcprop.c  (revision 215852)
+++ regcprop.c  (working copy)
@@ -1030,6 +1030,12 @@ copyprop_hardreg_forward_1 (basic_block bb, struct
             assume the value in it is still live.  */
          if (ksvd.ignore_set_reg)
            note_stores (PATTERN (insn), kill_clobbered_value, vd);
+         for (exp = CALL_INSN_FUNCTION_USAGE (insn); exp; exp = XEXP (exp, 1))
+           {
+             rtx x = XEXP (exp, 0);
+             if (GET_CODE (x) == CLOBBER)
+               kill_value (SET_DEST (x), vd);
+           }
        }

       /* Notice stores.  */
--cut here--

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