(safe_from_p, case RTL_EXPR): Return 0 if RTL_EXPR_SEQUENCE exists.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 20 Oct 1995 23:30:53 +0000 (19:30 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 20 Oct 1995 23:30:53 +0000 (19:30 -0400)
Delete code to return 0 if exp_rtl is zero.

From-SVN: r10492

gcc/expr.c

index 559a0677c87aa063bc43a1d37240e59d12aeb03f..567532dfde48b1837d650484956c16fba3622a9a 100644 (file)
@@ -3901,11 +3901,13 @@ safe_from_p (x, exp)
          break;
 
        case RTL_EXPR:
-         exp_rtl = RTL_EXPR_RTL (exp);
-         if (exp_rtl == 0)
-           /* We don't know what this can modify.  */
+         /* If a sequence exists, we would have to scan every instruction
+            in the sequence to see if it was safe.  This is probably not
+            worthwhile.  */
+         if (RTL_EXPR_SEQUENCE (exp))
            return 0;
 
+         exp_rtl = RTL_EXPR_RTL (exp);
          break;
 
        case WITH_CLEANUP_EXPR: