]> granicus.if.org Git - llvm/commitdiff
[CorrelatedValuePropagation] Remove comment about iterating switch cases in reverse...
authorCraig Topper <craig.topper@intel.com>
Fri, 23 Jun 2017 20:28:35 +0000 (20:28 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 23 Jun 2017 20:28:35 +0000 (20:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306151 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/CorrelatedValuePropagation.cpp

index 2a4c9526dfcd934460d21f98cfd83445995a7046..21bdca655a154cd5ccc797282a991d64c44a3640 100644 (file)
@@ -232,8 +232,7 @@ static bool processSwitch(SwitchInst *SI, LazyValueInfo *LVI) {
   pred_iterator PB = pred_begin(BB), PE = pred_end(BB);
   if (PB == PE) return false;
 
-  // Analyse each switch case in turn.  This is done in reverse order so that
-  // removing a case doesn't cause trouble for the iteration.
+  // Analyse each switch case in turn.
   bool Changed = false;
   for (auto CI = SI->case_begin(), CE = SI->case_end(); CI != CE;) {
     ConstantInt *Case = CI->getCaseValue();