]> granicus.if.org Git - llvm/commit
[SLP] Remove bogus assert.
authorMichael Kuperstein <mkuper@google.com>
Wed, 11 Jan 2017 19:23:57 +0000 (19:23 +0000)
committerMichael Kuperstein <mkuper@google.com>
Wed, 11 Jan 2017 19:23:57 +0000 (19:23 +0000)
commit8672808b6bbf4918a432a923f3a0946b8af6bb9a
treefacfff2360934df4433e3726206c65492f8d7dbc
parent83229eeee3d299b73ef9a27540f657d06eac398f
[SLP] Remove bogus assert.

The removed assert seems bogus - it's perfectly legal for the roots of the
vectorized subtrees to be equal even if the original scalar values aren't,
if the original scalars happen to be equivalent.

This fixes PR31599.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291692 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/SLPVectorizer/X86/pr31599.ll [new file with mode: 0644]