re PR rtl-optimization/32790 (REG_N_SETS holds wrong value)
authorJeff Law <law@redhat.com>
Sat, 17 Jan 2015 07:24:24 +0000 (00:24 -0700)
committerJeff Law <law@gcc.gnu.org>
Sat, 17 Jan 2015 07:24:24 +0000 (00:24 -0700)
PR rtl-optimization/32790
        * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
        not ZERO_EXTEND in SET_DESTs.

From-SVN: r219795

gcc/ChangeLog
gcc/reginfo.c

index 12bd23ac5cd8fcd6c5622ab6fc2989a20a91ebef..04ae25502c797741d17daeeea3305720ab650f7b 100644 (file)
@@ -1,3 +1,9 @@
+2015-01-17  Jeff Law  <law@redhat.com>
+
+       PR rtl-optimization/32790
+       * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
+       not ZERO_EXTEND in SET_DESTs.
+
 2015-01-17  Alan Modra  <amodra@gmail.com>
 
        * cprop.c (do_local_cprop): Revert last change.
index 2a18fb83473c1ff59b0babac61f69a755b6c7693..9015eebbdeb6e5a3f4d8837117a29ab7cb0f8b4b 100644 (file)
@@ -1132,7 +1132,7 @@ reg_scan_mark_refs (rtx x, rtx_insn *insn)
       /* Count a set of the destination if it is a register.  */
       for (dest = SET_DEST (x);
           GET_CODE (dest) == SUBREG || GET_CODE (dest) == STRICT_LOW_PART
-          || GET_CODE (dest) == ZERO_EXTEND;
+          || GET_CODE (dest) == ZERO_EXTRACT;
           dest = XEXP (dest, 0))
        ;