]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Revert "[rtl-optimization/117467] Avoid unnecessarily marking things live in ext...
authorJeff Law <jlaw@ventanamicro.com>
Wed, 12 Mar 2025 00:01:33 +0000 (18:01 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Wed, 12 Mar 2025 00:01:33 +0000 (18:01 -0600)
This reverts commit 4ed07a11ee2845c2085a3cd5cff043209a452441.

gcc/ext-dce.cc

index 35ddda00cdb639a6d9ad13afdf07b334a9cda77a..a03439501419df9fccf712383040b2b2ea556c9f 100644 (file)
@@ -643,18 +643,6 @@ ext_dce_process_uses (rtx_insn *insn, rtx obj,
          /* The code of the RHS of a SET.  */
          enum rtx_code code = GET_CODE (src);
 
-         /* If we break the main loop below, then we will continue processing
-            sub-components of this RTX, including the SET_DEST.
-
-            That is not necessary if the SET_DEST is a REG.  We can just bump the
-            iterator to the next element to skip handling the SET_DEST.
-
-            We can probably do this for ZERO_EXTRACT, STRICT_LOW_PART and SUBREG
-            destinations as well.  But I want to rewrite all this code and keep
-            this fix conservative given we're deep into the gcc-15 release cycle.  */
-         if (REG_P (dst))
-           iter.next ();
-
          /* ?!? How much of this should mirror SET handling, potentially
             being shared?   */
          if (SUBREG_P (dst) && SUBREG_BYTE (dst).is_constant ())