From 3bb5826ab80b3b750de1825fe54bcb01d0f1162c Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 20 Oct 1995 19:30:53 -0400 Subject: [PATCH] (safe_from_p, case RTL_EXPR): Return 0 if RTL_EXPR_SEQUENCE exists. Delete code to return 0 if exp_rtl is zero. From-SVN: r10492 --- gcc/expr.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gcc/expr.c b/gcc/expr.c index 559a0677c87..567532dfde4 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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: -- 2.30.2