[X86][SSE] Pull out combineToHorizontalAddSub helper from inside (F)ADD/SUB combines...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 16 May 2021 09:53:04 +0000 (10:53 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 16 May 2021 12:50:58 +0000 (13:50 +0100)
commit262e4200d1977335d62dbab93b5d8e1f9f5c5e86
tree0b8734d6782ebc2a008588cbb5f72df4bf0f8089
parent13c22e75f012181ac0f669796630f638ef85ec57
[X86][SSE] Pull out combineToHorizontalAddSub helper from inside (F)ADD/SUB combines (REAPPLIED). NFCI.

The intention is to be able to run this from additional locations (such as shuffle combining) in the future.

Reapplies rGb95a103808ac (after reversion at rGc012a388a15b), with SSE3/SSSE3 typo fix, test added at rG0afb10de1449.
llvm/lib/Target/X86/X86ISelLowering.cpp