[NFC] Add clarification comment

llvm-svn: 330677
This commit is contained in:
Max Kazantsev 2018-04-24 02:08:05 +00:00
parent 24004d65a5
commit 5a0a40b8cb
1 changed files with 4 additions and 2 deletions

View File

@ -259,8 +259,10 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) {
return false;
// Anything ScalarEvolution may know about this loop or the PHI nodes
// in its header will soon be invalidated, and it can also affect its parent
// loops as well.
// in its header will soon be invalidated. We should also invalidate
// all outer loops because insertion and deletion of blocks that happens
// during the rotation may violate invariants related to backedge taken
// infos in them.
if (SE)
SE->forgetTopmostLoop(L);