This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix strrchr simplification
- From: Roger Sayle <roger at eyesopen dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 5 Nov 2003 09:00:55 -0700 (MST)
- Subject: Re: Fix strrchr simplification
On Wed, 5 Nov 2003, Jan Hubicka wrote:
> Actually I did tested it only in heavilly modified tree-ssa tree. In
> meantime it bootstrapped/regtested i386 on mainline, but by adding
> sanity check in fold_binary_nondestructive, I found more cu&paste
> occurences in fodling code.
>
> The patch testing is again in progress on i386-unknown-linux. OK
> assuming it passes?
Ok. Check the changes to expand_builtin_* to both mainline and
tree-ssa, and the changes to simplify_builtin_* into just tree-ssa,
provided both patches survive bootstrap against their respective
branch. The actual changes themselves fall under the "obvious"
category.
Jeff and I were intending on cleaning up and refactoring the
expand_builtin_foo, fold_builtin_foo and simplify_builtin_foo
APIs in builtins.c in the near future. Unfortunately I'm
concentrating on resolving optimization PRs for 3.4, so for
the time being fixes need to be applied to the all of the
duplicated copies of this code on tree-ssa.
Roger
--