Vectorizer: optimize the generation of selects. If the condition is uniform, generate...
authorNadav Rotem <nrotem@apple.com>
Mon, 22 Oct 2012 04:38:00 +0000 (04:38 +0000)
committerNadav Rotem <nrotem@apple.com>
Mon, 22 Oct 2012 04:38:00 +0000 (04:38 +0000)
commit565048e78a152aa69b66422037b67c0f627bbfec
tree9bd888d016f8cb8a0f2ca49c9f7c2d81b43451df
parente0fa403e23ab5610471c2dbe5c032327ee1ed091
Vectorizer: optimize the generation of selects. If the condition is uniform, generate a scalar-cond select (i1 as selector).

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