i386.md: Add two new peephole2 to avoid mov followed by arithmetic with memory operands.
commitbab64f23e9aa03c3f309c7de92004c544667a5d6
authorPaolo Bonzini <bonzini@gnu.org>
Wed, 11 Feb 2009 08:56:41 +0000 (11 08:56 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Wed, 11 Feb 2009 08:56:41 +0000 (11 08:56 +0000)
treec79fce9df9af24381a916e01ee7394f6ecc01201
parentbfbe1b687b599be65450795a562db10bcf2fde1d
i386.md: Add two new peephole2 to avoid mov followed by arithmetic with memory operands.

gcc:
2009-02-06  Paolo Bonzini  <bonzini@gnu.org>

* config/i386/i386.md: Add two new peephole2 to avoid mov followed
by arithmetic with memory operands.
* config/i386/predicates.md (commutative_operator): New.

gcc/testsuite:
2009-02-06  Paolo Bonzini  <bonzini@gnu.org>

* gcc.target/i386/pr38824.c: New testcase.

From-SVN: r144098
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/config/i386/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr38824.c [new file with mode: 0644]