diff options
| author | Douglas Katzman <dougk@google.com> | 2016-09-29 17:26:12 +0000 |
|---|---|---|
| committer | Douglas Katzman <dougk@google.com> | 2016-09-29 17:26:12 +0000 |
| commit | 3ace13adfa7a296595c3569d0e9bfc262aff33b5 (patch) | |
| tree | 92fbb3881b4d15ecc6a682d04da3c0fa799672f6 /llvm/lib/Target | |
| parent | eb0ba8d50f42ebb9d2e4bb992872a761894efeee (diff) | |
| download | bcm5719-llvm-3ace13adfa7a296595c3569d0e9bfc262aff33b5.tar.gz bcm5719-llvm-3ace13adfa7a296595c3569d0e9bfc262aff33b5.zip | |
[X86] Avoid "unused" warnings if no asserts
llvm-svn: 282732
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp b/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp index 978619999ab..09c31455c42 100644 --- a/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp +++ b/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp @@ -98,6 +98,7 @@ static bool extractConstantMask(const Constant *C, unsigned MaskEltSizeInBits, void DecodePSHUFBMask(const Constant *C, SmallVectorImpl<int> &ShuffleMask) { Type *MaskTy = C->getType(); unsigned MaskTySize = MaskTy->getPrimitiveSizeInBits(); + (void)MaskTySize; assert(MaskTySize == 128 || MaskTySize == 256 || MaskTySize == 512); // The shuffle mask requires a byte vector. @@ -136,6 +137,7 @@ void DecodeVPERMILPMask(const Constant *C, unsigned ElSize, SmallVectorImpl<int> &ShuffleMask) { Type *MaskTy = C->getType(); unsigned MaskTySize = MaskTy->getPrimitiveSizeInBits(); + (void)MaskTySize; assert(MaskTySize == 128 || MaskTySize == 256 || MaskTySize == 512); assert(ElSize == 32 || ElSize == 64); @@ -171,6 +173,7 @@ void DecodeVPERMIL2PMask(const Constant *C, unsigned M2Z, unsigned ElSize, SmallVectorImpl<int> &ShuffleMask) { Type *MaskTy = C->getType(); unsigned MaskTySize = MaskTy->getPrimitiveSizeInBits(); + (void)MaskTySize; assert(MaskTySize == 128 || MaskTySize == 256); // The shuffle mask requires elements the same size as the target. @@ -221,8 +224,7 @@ void DecodeVPERMIL2PMask(const Constant *C, unsigned M2Z, unsigned ElSize, } void DecodeVPPERMMask(const Constant *C, SmallVectorImpl<int> &ShuffleMask) { - Type *MaskTy = C->getType(); - assert(MaskTy->getPrimitiveSizeInBits() == 128); + assert(C->getType()->getPrimitiveSizeInBits() == 128); // The shuffle mask requires a byte vector. SmallBitVector UndefElts; |

