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

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 28 11:10:57 PST 2020


nikic added a comment.

I don't fully understand how this API is going to be used. The current API makes sense to me (are all elements in the vector the same?) but the new one is unclear, especially for the case where no shufflevector is involved. If I have a splat constant, which index does the value come from?

Do you already have a followup patch that uses this API that you could share?


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

https://reviews.llvm.org/D73549





More information about the llvm-commits mailing list