From d0bfd0b5e9db49bb261ef9bb3081f900e37e2cd7 Mon Sep 17 00:00:00 2001 From: jakub Date: Tue, 29 Jan 2002 23:15:24 +0000 Subject: * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result in cselib_lookup. * gcc.c-torture/execute/20020129-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49333 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cselib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cselib.c') diff --git a/gcc/cselib.c b/gcc/cselib.c index a3120d2a837..64eb8a5752a 100644 --- a/gcc/cselib.c +++ b/gcc/cselib.c @@ -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 -- cgit v1.2.1