[PATCH] D73549: [Analysis] add optional index parameter to isSplatValue()

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 31 10:17:47 PST 2020


efriedma added inline comments.


================
Comment at: llvm/lib/Analysis/VectorUtils.cpp:363
+    // The mask should be defined at and match the specified index.
+    if (auto *MaskElt = dyn_cast<ConstantInt>(Mask->getAggregateElement(Elt)))
+      return MaskElt->getZExtValue() == Elt;
----------------
Please use getMaskValue here.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73549/new/

https://reviews.llvm.org/D73549





More information about the llvm-commits mailing list