]> granicus.if.org Git - llvm/commit
[X86][SSE] Relax use limits for lowerAddSubToHorizontalOp (PR32433)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 13 May 2019 16:02:45 +0000 (16:02 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 13 May 2019 16:02:45 +0000 (16:02 +0000)
commit414caf48e20ec6bd18abf7482d800762d88257dc
treec0ad5ca7d0852c3ad210345a08cd22359a3370d7
parent89c70147ceb1da23def6979fd2178ca0ac3bb1b2
[X86][SSE] Relax use limits for lowerAddSubToHorizontalOp (PR32433)

Now that we can use HADD/SUB for scalar additions from any pair of extracted elements (D61263), we can relax the one use limit as we will be able to merge multiple uses into using the same HADD/SUB op.

This exposes a couple of missed opportunities in LowerBuildVectorv4x32 which will be committed separately.

Differential Revision: https://reviews.llvm.org/D61782

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360594 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/haddsub-undef.ll
test/CodeGen/X86/phaddsub-undef.ll