This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch,AVR]: Tweak decrement-and-branch peepholes
- From: Denis Chertykov <chertykov at gmail dot com>
- To: Georg-Johann Lay <avr at gjlay dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 29 Feb 2012 14:12:40 +0400
- Subject: Re: [Patch,AVR]: Tweak decrement-and-branch peepholes
- Authentication-results: mr.google.com; spf=pass (google.com: domain of chertykov@gmail.com designates 10.152.144.4 as permitted sender) smtp.mail=chertykov@gmail.com; dkim=pass header.i=chertykov@gmail.com
- References: <4F4DF71C.8040603@gjlay.de>
2012/2/29 Georg-Johann Lay <avr@gjlay.de>:
> The condition/branch in decrement-and-branch peepholes is ne/brcc.
>
> This can be generalized to cover eq/brcs.
>
> Tested without regressions.
>
> Because of PR52417, I had to run the tests with -fno-dse. There is one
> UNSUPPORTED because of that (missing dse dump).
>
> Ok for the trunk?
>
> Johann
>
> Â Â Â Â* config/avr/avr.md (eqne): New code iterator.
> Â Â Â Â(*dec-and-branchsi): Use it in text peephole's condition.
> Â Â Â Â(*dec-and-branchhi): Ditto.
> Â Â Â Â(*dec-and-branchqi): Ditto.
Approved.
Denis.