canonicalize a v2f64 blendi of 2 registers
authorSanjay Patel <spatel@rotateright.com>
Fri, 20 Feb 2015 16:55:27 +0000 (16:55 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 20 Feb 2015 16:55:27 +0000 (16:55 +0000)
commit74e8bf678a6fba8614f82baed2aaef2eaf7719b5
tree0daca0e3c7b055a16181b4ee5e7e806ddd522225
parent6039d05a2263e13fbe3fdcd280613c4dee02b9ce
canonicalize a v2f64 blendi of 2 registers

This canonicalization step saves us 3 pattern matching possibilities * 4 math ops
for scalar FP math that uses xmm regs. The backend can re-commute the operands
post-instruction-selection if that makes register allocation better.

The tests in llvm/test/CodeGen/X86/sse-scalar-fp-arith.ll cover this scenario already,
so there are no new tests with this patch.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230024 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86InstrSSE.td