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)
commit03011f1393f3e93d71c924a3a1dc616e8a4c3285
treec234d9a06b62740ec2d30c4ef3b24e44485a71ac
parentc9741887c308faba9d1841ca49257b24390224c5
Vectorizer: optimize the generation of selects. If the condition is uniform, generate a scalar-cond select (i1 as selector).

llvm-svn: 166409
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/scalar-select.ll [new file with mode: 0644]