[PATCH] D63138: [Analysis] add isSplatValue() for vectors in IR
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 11 07:22:44 PDT 2019
lebedev.ri added a comment.
Seems ok to me
================
Comment at: llvm/lib/Analysis/VectorUtils.cpp:350
+ Value *X, *Y, *Z;
+ if (match(V, m_BinOp(m_Value(X), m_Value(Y))))
+ return isSplatValue(X, Depth) && isSplatValue(Y, Depth);
----------------
also fneg
also some intrinsics - overflow, saturating, ...
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63138/new/
https://reviews.llvm.org/D63138
More information about the llvm-commits
mailing list