[x86] extend machine combiner reassociation optimization to SSE scalar adds
authorSanjay Patel <spatel@rotateright.com>
Mon, 6 Jul 2015 22:35:29 +0000 (22:35 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 6 Jul 2015 22:35:29 +0000 (22:35 +0000)
commit75a2ce32714b7e94e2b09f3debebc9879038d296
tree25eb159f6df6164e51fdb2df86328c6c4277e7ae
parent6970be03d16d6b4d0073e60c4a987f1860e85cdb
[x86] extend machine combiner reassociation optimization to SSE scalar adds

Extend the reassociation optimization of http://reviews.llvm.org/rL240361 (D10460)
to SSE scalar FP SP adds in addition to AVX scalar FP SP adds.

With the 'switch' in place, we can trivially add other opcodes and test cases in
future patches.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241515 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/machine-combiner.ll