mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243167 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9f2f1650c4
commit
b0fd31a910
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user