diff options
author | Fraser Cormack <fraser@codeplay.com> | 2021-06-21 09:50:27 +0100 |
---|---|---|
committer | Fraser Cormack <fraser@codeplay.com> | 2021-06-21 10:57:42 +0100 |
commit | 983972bfb0f9c55e85a1d352b55918a328f72380 (patch) | |
tree | 6fabddaf1882b06f26fa5baa72520ec78b728400 /llvm/lib/IR/IntrinsicInst.cpp | |
parent | 12ae3cb7ba5399b99c02e8a73c681192259e188f (diff) | |
download | llvm-983972bfb0f9c55e85a1d352b55918a328f72380.zip llvm-983972bfb0f9c55e85a1d352b55918a328f72380.tar.gz llvm-983972bfb0f9c55e85a1d352b55918a328f72380.tar.bz2 |
[VP][NFCI] Address various clang-tidy warnings
Reviewed By: simoll
Differential Revision: https://reviews.llvm.org/D104288
Diffstat (limited to 'llvm/lib/IR/IntrinsicInst.cpp')
-rw-r--r-- | llvm/lib/IR/IntrinsicInst.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/IR/IntrinsicInst.cpp b/llvm/lib/IR/IntrinsicInst.cpp index eab250a..d025bc6 100644 --- a/llvm/lib/IR/IntrinsicInst.cpp +++ b/llvm/lib/IR/IntrinsicInst.cpp @@ -266,7 +266,7 @@ bool ConstrainedFPIntrinsic::classof(const IntrinsicInst *I) { ElementCount VPIntrinsic::getStaticVectorLength() const { auto GetVectorLengthOfType = [](const Type *T) -> ElementCount { - auto VT = cast<VectorType>(T); + const auto *VT = cast<VectorType>(T); auto ElemCount = VT->getElementCount(); return ElemCount; }; @@ -380,7 +380,7 @@ bool VPIntrinsic::canIgnoreVectorLengthParam() const { // Check whether "W == vscale * EC.getKnownMinValue()" if (EC.isScalable()) { // Undig the DL - auto ParMod = this->getModule(); + const auto *ParMod = this->getModule(); if (!ParMod) return false; const auto &DL = ParMod->getDataLayout(); @@ -393,7 +393,7 @@ bool VPIntrinsic::canIgnoreVectorLengthParam() const { } // standard SIMD operation - auto VLConst = dyn_cast<ConstantInt>(VLParam); + const auto *VLConst = dyn_cast<ConstantInt>(VLParam); if (!VLConst) return false; |