Improved the operands commute transformation for X86-FMA3 instructions.
authorAndrew Kaylor <andrew.kaylor@intel.com>
Fri, 6 Nov 2015 19:47:25 +0000 (19:47 +0000)
committerAndrew Kaylor <andrew.kaylor@intel.com>
Fri, 6 Nov 2015 19:47:25 +0000 (19:47 +0000)
commit91950eea5582709ea263cc48bd97fdea817b53d1
tree45cccbf2b676424566f1cb66d6541bd612f9f55e
parent11228e360ea9fa8ff50df4f965f5cb52133a43a9
Improved the operands commute transformation for X86-FMA3 instructions.
All 3 operands of FMA3 instructions are commutable now.

Patch by Slava Klochkov

Reviewers: Quentin Colombet(qcolombet), Ahmed Bougacha(ab).

Differential Revision: http://reviews.llvm.org/D13269

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252335 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrFMA.td
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h
test/CodeGen/X86/fma-commute-x86.ll [new file with mode: 0644]
test/CodeGen/X86/fma_patterns.ll