BBVectorize: Only some insert element operand pairs are free.
authorHal Finkel <hfinkel@anl.gov>
Mon, 12 Nov 2012 23:55:36 +0000 (23:55 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 12 Nov 2012 23:55:36 +0000 (23:55 +0000)
commitb2b2469a9178f7e22cd7a69f3093e54d67d6b712
treec99426756959a1127c04ebb5bfca9c2c49fc2608
parent5090b2d3774c684f5e6f0f61362e522af2e6ea83
BBVectorize: Only some insert element operand pairs are free.

This fixes another infinite recursion case when using target costs.
We can only replace insert element input chains that are pure (end
with inserting into an undef).

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