aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-10-20 19:30:53 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-10-20 19:30:53 -0400
commit3bb5826ab80b3b750de1825fe54bcb01d0f1162c (patch)
tree6ab7f0f25f8fcdc1442df34c77593e22e601e718
parentd02089a5f24db5cea75174304a367b8b5555ddb8 (diff)
downloadgcc-3bb5826ab80b3b750de1825fe54bcb01d0f1162c.zip
gcc-3bb5826ab80b3b750de1825fe54bcb01d0f1162c.tar.gz
gcc-3bb5826ab80b3b750de1825fe54bcb01d0f1162c.tar.bz2
(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
-rw-r--r--gcc/expr.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 559a067..567532d 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: