diff options
author | Pete Cooper <peter_cooper@apple.com> | 2015-07-24 21:38:01 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2015-07-24 21:38:01 +0000 |
commit | 319169713815feb15d2201c994532779c64e75a4 (patch) | |
tree | 1369807eaf0f221b4f8ba6eed95428264358be82 /llvm/lib/Transforms/Scalar/LoopInterchange.cpp | |
parent | d26eb907bc5970c12d096b3d668909134502f102 (diff) | |
download | llvm-319169713815feb15d2201c994532779c64e75a4.zip llvm-319169713815feb15d2201c994532779c64e75a4.tar.gz llvm-319169713815feb15d2201c994532779c64e75a4.tar.bz2 |
Remove unnecessary null check. NFC.
Since both places which set this variable do so with dyn_cast, and not
dyn_cast_or_null, its impossible to get a nullptr here, so we can remove
the check.
llvm-svn: 243167
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopInterchange.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopInterchange.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp index 9d7e57f..75fe0c7 100644 --- a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp +++ b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp @@ -817,9 +817,6 @@ bool LoopInterchangeLegality::currentLimitations() { InnerIndexVarInc = dyn_cast<Instruction>(InnerInductionVar->getIncomingValue(0)); - if (!InnerIndexVarInc) - return true; - // Since we split the inner loop latch on this induction variable. Make sure // we do not have any instruction between the induction variable and branch // instruction. |