]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(simplify_rtx): In code that attempts to simplify conditional expressions...
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 3 Oct 1995 17:58:18 +0000 (13:58 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 3 Oct 1995 17:58:18 +0000 (13:58 -0400)
(simplify_rtx): In code that attempts to simplify conditional
expressions, if the result is an NE around another comparison, return
the original expression.

From-SVN: r10428

gcc/combine.c

index aa304452689066be30c67a5ae2494fba65ef5fed..8e46de042ddb166803a30bc40129038aabefd51d 100644 (file)
@@ -3057,6 +3057,9 @@ simplify_rtx (x, op0_mode, last, in_dest)
          rtx cop1 = const0_rtx;
          enum rtx_code cond_code = simplify_comparison (NE, &cond, &cop1);
 
+         if (cond_code == NE && GET_RTX_CLASS (GET_CODE (cond)) == '<')
+           return x;
+
          /* Simplify the alternative arms; this may collapse the true and 
             false arms to store-flag values.  */
          true = subst (true, pc_rtx, pc_rtx, 0, 0);