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
This commit is contained in:
Pete Cooper 2015-07-24 21:38:01 +00:00
parent d26eb907bc
commit 3191697138
1 changed files with 0 additions and 3 deletions

View File

@ -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.