[PATCH] D63138: [Analysis] add isSplatValue() for vectors in IR

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 11 07:36:46 PDT 2019


RKSimon added inline comments.


================
Comment at: llvm/include/llvm/Analysis/VectorUtils.h:82
+/// Return true if the input value is known to be a vector with all identical
+/// elements (potentially including undefined elements).
+bool isSplatValue(const Value *V, unsigned Depth = 0);
----------------
Make it clear that this is more powerful than getSplatValue ? 


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

https://reviews.llvm.org/D63138





More information about the llvm-commits mailing list