LoopRotate: Update comment to reflect reality

Swift SVN r19919
This commit is contained in:
Arnold Schwaighofer
2014-07-14 03:42:40 +00:00
parent c50e396103
commit 33502446e3

View File

@@ -234,7 +234,8 @@ static bool rotateLoopAtMostUpToLatch(SILLoop *L, DominanceInfo *DT,
/// We rotated a loop if it has the following properties.
///
/// * It has an exiting header with a conditional branch.
/// * It has a preheader.
/// * It has a preheader (the function will try to create one for critical edges
/// from cond_br).
///
/// We will rotate at most up to the basic block passed as an argument.
/// We will not rotate a loop where the header is equal to the latch except is