OSDN Git Service

Reapply r216805 "[MachineCombiner][AArch64] Use the correct register class for MADD...
authorJuergen Ributzka <juergen@apple.com>
Wed, 3 Sep 2014 07:07:10 +0000 (07:07 +0000)
committerJuergen Ributzka <juergen@apple.com>
Wed, 3 Sep 2014 07:07:10 +0000 (07:07 +0000)
commit847547086d87bca88f9a0fb17723a4ae7e1ad772
treeb7e8526f572e2485f9ea951e2afb524f2b557d63
parent732b0261192db96ad8950120e4325ea674b051c6
Reapply r216805 "[MachineCombiner][AArch64] Use the correct register class for MADD, SUB, and OR.""

This reapplies r216805 with a fix to a copy-past error, which resulted in an
incorrect register class.

Original commit message:
Select the correct register class for the various instructions that are
generated when combining instructions and constrain the registers to the
appropriate register class.

This fixes rdar://problem/18183707.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217019 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrInfo.cpp
test/CodeGen/AArch64/madd-combiner.ll [new file with mode: 0644]