[PATCH] D31527: InstSimplify: A shuffle of a splat is always the splat itself

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 2 11:13:59 PDT 2017


RKSimon accepted this revision.
RKSimon added a comment.
This revision is now accepted and ready to land.

Thanks! LGTM - with one (optional) minor.



================
Comment at: lib/Analysis/InstructionSimplify.cpp:4087
                                         unsigned MaxRecurse) {
+  Type *InVecTy = Op0->getType();
   unsigned MaskNumElts = Mask->getType()->getVectorNumElements();
----------------
This part can be done as an NFC pre-commit.


Repository:
  rL LLVM

https://reviews.llvm.org/D31527





More information about the llvm-commits mailing list