diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-29 23:15:24 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-29 23:15:24 +0000 |
commit | d0bfd0b5e9db49bb261ef9bb3081f900e37e2cd7 (patch) | |
tree | a839186093b45f6f58e3a5073b6a2109df7c62e1 /gcc/cselib.c | |
parent | 9d2337ebc82f470a47a884d0281c2dc022b19153 (diff) | |
download | gcc-d0bfd0b5e9db49bb261ef9bb3081f900e37e2cd7.tar.gz |
* 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
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r-- | gcc/cselib.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |