This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
dead code in loop.c:insert_loop_mem
- To: gcc at gcc dot gnu dot org
- Subject: dead code in loop.c:insert_loop_mem
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Fri, 21 Jan 2000 00:11:27 +0000 (GMT)
/* See if we've already seen this MEM. */
for (i = 0; i < loop_mems_idx; ++i)
if (rtx_equal_p (m, loop_mems[i].mem))
{
if (GET_MODE (m) != GET_MODE (loop_mems[i].mem))
/* The modes of the two memory accesses are different. If
this happens, something tricky is going on, and we just
don't optimize accesses to this MEM. */
loop_mems[i].optimize = 0;
return 0;
}
rtx_equal_p will return zero if the modes don't match.