LoopVectorize: Invert case when we use a vector cmp value to query select cost
authorArnold Schwaighofer <aschwaighofer@apple.com>
Thu, 14 Mar 2013 18:54:36 +0000 (18:54 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Thu, 14 Mar 2013 18:54:36 +0000 (18:54 +0000)
commitd517da33b712b5d8d687ee5e5974056a4787ec4f
treeb94e6e12160060e1c44a3b0aebbc8016d5b130fc
parent862146b6077f017faa2b2113768e723891a06494
LoopVectorize: Invert case when we use a vector cmp value to query select cost

We generate a select with a vectorized condition argument when the condition is
NOT loop invariant. Not the other way around.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177098 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/X86/vector-scalar-select-cost.ll [new file with mode: 0644]