This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix IA-64 miscompilation
- From: Jakub Jelinek <jakub at redhat dot com>
- To: rth at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 29 Jan 2002 20:51:56 +0100
- Subject: [PATCH] Fix IA-64 miscompilation
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
And here is the fix. Although we built IF_THEN_ELSE for predicated sets,
we'd immediately throw it away.
Bootstrap pending, ok to commit if it succeeds?
2002-01-29 Jakub Jelinek <jakub@redhat.com>
* cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
in cselib_lookup.
--- gcc/cselib.c.jj Tue Nov 6 19:55:18 2001
+++ gcc/cselib.c Tue Jan 29 21:53:03 2002
@@ -1238,7 +1238,7 @@ cselib_record_sets (insn)
rtx src = sets[i].src;
if (cond)
src = gen_rtx_IF_THEN_ELSE (GET_MODE (src), cond, src, dest);
- sets[i].src_elt = cselib_lookup (sets[i].src, GET_MODE (dest), 1);
+ sets[i].src_elt = cselib_lookup (src, GET_MODE (dest), 1);
if (GET_CODE (dest) == MEM)
sets[i].dest_addr_elt = cselib_lookup (XEXP (dest, 0), Pmode, 1);
else
Jakub