[X86][SSE] Move unpack(hop,hop) fold from foldShuffleOfHorizOp to combineTargetShuffle
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 5 May 2021 11:21:30 +0000 (12:21 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 5 May 2021 12:36:09 +0000 (13:36 +0100)
commit85460a2f5b6309450b341d19d800a7d90786b941
treec00e88b27f97a43864b1335764659ed3253b08af
parent6f5670a4c3d8c079d4b676140ee69e5cc235d5a8
[X86][SSE] Move unpack(hop,hop) fold from foldShuffleOfHorizOp to combineTargetShuffle

By moving this after more of the shuffle canonicalization we reduce the demanded vector elts, avoiding a few unnecessary copies/moves etc.
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/horizontal-sum.ll