[X86][XOP] Enable commutation for XOP instructions
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 14 Feb 2015 22:40:46 +0000 (22:40 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 14 Feb 2015 22:40:46 +0000 (22:40 +0000)
commit31457d54f7dd7326243c0967f43fd78268abd6b1
tree3ba9e34964cfa514a11f6cdf928eb7099db869fa
parent43860838dcddeda49ef96102fabc5c04419464af
[X86][XOP] Enable commutation for XOP instructions

Patch to allow XOP instructions (integer comparison and integer multiply-add) to be commuted. The comparison instructions sometimes require the compare mode to be flipped but the remaining instructions can use default commutation modes.

This patch also sets the SSE domains of all the XOP instructions.

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

llvm-svn: 229267
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/lib/Target/X86/X86InstrXOP.td
llvm/test/CodeGen/X86/commute-xop.ll [new file with mode: 0644]