We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3511e43 commit aeac9e8Copy full SHA for aeac9e8
llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
@@ -866,7 +866,7 @@ void SimplifyIndvar::pushIVUsers(
866
continue;
867
868
// Avoid adding Defs that SCEV expand to themselves, e.g. the LoopPhis
869
- // of the outter loops.
+ // of the outer loops.
870
if (!DT->dominates(L->getHeader(), UI->getParent()))
871
872
@@ -879,9 +879,8 @@ void SimplifyIndvar::pushIVUsers(
879
? 0 // reset depth if we go back inside the loop.
880
: OutOfLoopChainCounter + (UI->getParent() != Def->getParent());
881
882
- if (!MaxDepthOutOfLoop || Counter < MaxDepthOutOfLoop) {
+ if (!MaxDepthOutOfLoop || Counter < MaxDepthOutOfLoop)
883
SimpleIVUsers.push_back(std::make_tuple(UI, Def, Counter));
884
- }
885
}
886
887
0 commit comments