aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Function.cpp
diff options
context:
space:
mode:
authorChristopher Tetreault <ctetreau@quicinc.com>2020-04-23 10:58:37 -0700
committerChristopher Tetreault <ctetreau@quicinc.com>2020-04-23 11:51:22 -0700
commit3ecced163f539dd04e86ba9dbf27e49bd89a4a11 (patch)
treeeebbcd03db76998befeaed39a6927874ecd4fcf6 /llvm/lib/IR/Function.cpp
parent757c7c244b70cb35269dfe95aa801fd0ea3c5a0c (diff)
downloadllvm-3ecced163f539dd04e86ba9dbf27e49bd89a4a11.zip
llvm-3ecced163f539dd04e86ba9dbf27e49bd89a4a11.tar.gz
llvm-3ecced163f539dd04e86ba9dbf27e49bd89a4a11.tar.bz2
[SVE] Remove calls to isScalable from IR
Reviewers: efriedma, sdesmalen, dexonsmith, dblaikie Reviewed By: sdesmalen Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77691
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r--llvm/lib/IR/Function.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp
index 972fe0e..53ab117 100644
--- a/llvm/lib/IR/Function.cpp
+++ b/llvm/lib/IR/Function.cpp
@@ -1354,10 +1354,9 @@ static bool matchIntrinsicType(
return true;
}
case IITDescriptor::ScalableVecArgument: {
- VectorType *VTy = dyn_cast<VectorType>(Ty);
- if (!VTy || !VTy->isScalable())
+ if (!isa<ScalableVectorType>(Ty))
return true;
- return matchIntrinsicType(VTy, Infos, ArgTys, DeferredChecks,
+ return matchIntrinsicType(Ty, Infos, ArgTys, DeferredChecks,
IsDeferredCheck);
}
case IITDescriptor::VecOfBitcastsToInt: {