OSDN Git Service

[DAGCombiner] Don't accept -1 sdiv divisors in sdiv-by-pow2 vector expansion (PR37119)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 26 Jun 2018 17:46:51 +0000 (17:46 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 26 Jun 2018 17:46:51 +0000 (17:46 +0000)
commit67cc73d7b24df218099f8d2a41fc8ebf8cbb1b79
tree9feae40c0e87ab254456acddff0e0271564b6a6e
parent0fde67787aa463460657358d09d35263fa379cd4
[DAGCombiner] Don't accept -1 sdiv divisors in sdiv-by-pow2 vector expansion (PR37119)

Temporary fix until I've managed to get D45806 updated - both +1 and -1 special cases need to be properly supported.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335637 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/combine-sdiv.ll