Fix PR19657 (scalar loads not combined into vector load)
authorKarthik Bhat <kv.bhat@samsung.com>
Fri, 6 Jun 2014 06:20:08 +0000 (06:20 +0000)
committerKarthik Bhat <kv.bhat@samsung.com>
Fri, 6 Jun 2014 06:20:08 +0000 (06:20 +0000)
commitb73a9b384e3fd73fe8739310b1fc7aa52ab9c9ae
tree5b9dd2f736d62fa460499fe5ba3034d3110506ac
parentdc4c7fb098fad30eee389dd95b12bf6f86dd67d1
Fix PR19657 (scalar loads not combined into vector load)
If we have common uses on separate paths in the tree; process the one with greater common depth first.
This makes sure that we do not assume we need to extract a load when it is actually going to be part of a vectorized tree.

Review: http://reviews.llvm.org/D3800

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