llvm.org GIT mirror llvm / b661fec
isBytewiseValue checks ConstantVector element by element Summary: Vector of the same value with few undefs will sill be considered "Bytewise" Reviewers: eugenis, pcc, jfb Reviewed By: jfb Subscribers: dexonsmith, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D64031 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365971 91177308-0d34-0410-b5e6-96231b3b80d8 Vitaly Buka a month ago
2 changed file(s) with 2 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
32523252 return Val;
32533253 }
32543254
3255 if (isa(C)) {
3256 Constant *Splat = cast(C)->getSplatValue();
3257 return Splat ? isBytewiseValue(Splat, DL) : nullptr;
3258 }
3259
3260 if (isarray>(C) || isa>(C)) {
3255 if (isaggregate>(C)) {
32613256 Value *Val = UndefInt8;
32623257 for (unsigned I = 0, E = C->getNumOperands(); I != E; ++I)
32633258 if (!(Val = Merge(Val, isBytewiseValue(C->getOperand(I), DL))))
877877 "<4 x i8> ",
878878 },
879879 {
880 "",
880 "i8 5",
881881 "<2 x i8> < i8 5, i8 undef >",
882882 },
883883 {