[llvm] r243167 - Remove unnecessary null check. NFC.
Pete Cooper
peter_cooper at apple.com
Fri Jul 24 14:38:01 PDT 2015
Author: pete
Date: Fri Jul 24 16:38:01 2015
New Revision: 243167
URL: http://llvm.org/viewvc/llvm-project?rev=243167&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopInterchange.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopInterchange.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopInterchange.cpp?rev=243167&r1=243166&r2=243167&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopInterchange.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopInterchange.cpp Fri Jul 24 16:38:01 2015
@@ -817,9 +817,6 @@ bool LoopInterchangeLegality::currentLim
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.
More information about the llvm-commits
mailing list