This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
peephole2 problem
- From: Dan Nicolaescu <dann at godzilla dot ICS dot UCI dot EDU>
- To: gcc at gcc dot gnu dot org
- Cc: Richard Henderson <rth at redhat dot com>
- Date: Wed, 19 Dec 2001 09:00:24 -0800
- Subject: peephole2 problem
Currently the sparc ldd peephole2 code will happily convert a sequence
like:
ld [%o0], %o0
ld [%o0 + 4], %o1
to:
ldd [%o0], %o0
which is obviously wrong.
Should the corresponding peephole2 predicate avoid this situation, or
it's something that the peephole2 code should take care of?
If the former is true I will submit a patch to fix the predicates
shortly.
Please advice.
--dan