[Patch,AVR]: Tweak decrement-and-branch peepholes

Georg-Johann Lay avr@gjlay.de
Wed Feb 29 10:12:00 GMT 2012

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?


	* 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eqne-dec-and-branch.diff
Type: text/x-patch
Size: 6716 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120229/c16f81b2/attachment.bin>

More information about the Gcc-patches mailing list