[PATCH] D52092: [ValueTracking] Generalize isBytewiseValue into isSplatValue
JF Bastien via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 20 11:39:10 PDT 2018
jfb added inline comments.
================
Comment at: include/llvm/Analysis/ValueTracking.h:229
+ /// truncated to one byte. Otherwise return null.
+ inline Value *isBytewiseValue(Value *V) {
+ return isSplatValue(V, 8);
----------------
Your target has 16-bit bytes, shouldn't this function (with your change) call `isSplatValue(V, 16)` in your target?
Repository:
rL LLVM
https://reviews.llvm.org/D52092
More information about the llvm-commits
mailing list