[PATCH] D11124: Extracting a splat value from vector
hfinkel at anl.gov
hfinkel at anl.gov
Sat Jul 25 17:15:46 PDT 2015
hfinkel added inline comments.
================
Comment at: lib/Analysis/VectorUtils.cpp:419
@@ +418,3 @@
+ llvm::ShuffleVectorInst *ShuffleInst = dyn_cast<llvm::ShuffleVectorInst>(V);
+ if (!ShuffleInst || !ShuffleInst->getMask()->isNullValue() ||
+ !isa<llvm::InsertElementInst>(ShuffleInst->getOperand(0)))
----------------
Does this handle the case where some of the mask entries are undef?
Repository:
rL LLVM
http://reviews.llvm.org/D11124
More information about the llvm-commits
mailing list