From: Jim Wilson Date: Thu, 14 Jan 1993 18:33:41 +0000 (-0800) Subject: (copy_rtx): A MEM with constant address is not sharable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc81e6253b50a6d819d5fbffaecceec38726c39d;p=gcc.git (copy_rtx): A MEM with constant address is not sharable. Undo Dec 27 change. From-SVN: r3231 --- diff --git a/gcc/rtl.c b/gcc/rtl.c index a47ebd53631..aca057d6f97 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);