This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
small true_dependence patch
- From: Dan Nicolaescu <dann at ics dot uci dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 06 Nov 2003 12:40:00 -0800
- Subject: small true_dependence patch
Return true if the arguments are identical. It can happen when
true_dependence is called from CSE.
Please check it in if OK, I don't have commit access.
2003-11-04 Dan Nicolaescu <dann@ics.uci.edu>
* alias.c (true_dependence): Return true if args are identical.
*** alias.c.~1.203.~ Tue Nov 4 15:20:11 2003
--- alias.c Tue Nov 4 15:46:00 2003
***************
*** 2068,2073 ****
--- 2068,2076 ----
rtx x_addr, mem_addr;
rtx base;
+ if (mem == x)
+ return 1;
+
if (MEM_VOLATILE_P (x) && MEM_VOLATILE_P (mem))
return 1;