From cc81e6253b50a6d819d5fbffaecceec38726c39d Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Thu, 14 Jan 1993 10:33:41 -0800 Subject: (copy_rtx): A MEM with constant address is not sharable. Undo Dec 27 change. From-SVN: r3231 --- gcc/rtl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/rtl.c') diff --git a/gcc/rtl.c b/gcc/rtl.c index a47ebd5..aca057d 100644 --- a/gcc/rtl.c +++ b/gcc/rtl.c @@ -284,10 +284,10 @@ copy_rtx (orig) return orig; break; - case MEM: - if (CONSTANT_ADDRESS_P (XEXP (orig, 0))) - return orig; - break; + /* A MEM with a constant address is not sharable. The problem is that + the constant address may need to be reloaded. If the mem is shared, + then reloading one copy of this mem will cause all copies to appear + to have been reloaded. */ } copy = rtx_alloc (code); -- cgit v1.1