summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-06-23 20:28:35 +0000
committerCraig Topper <craig.topper@intel.com>2017-06-23 20:28:35 +0000
commit29cdfe2cd997b3e8fd837725a89da0f0e6db5ee9 (patch)
tree9fd8ca9fbe6edcc5b7e137c75692d18f686fa89d
parent5f09852dfb527ac2b493e30df347c42aaf678865 (diff)
downloadbcm5719-llvm-29cdfe2cd997b3e8fd837725a89da0f0e6db5ee9.tar.gz
bcm5719-llvm-29cdfe2cd997b3e8fd837725a89da0f0e6db5ee9.zip
[CorrelatedValuePropagation] Remove comment about iterating switch cases in reverse order. This is no longer being done after r298791. NFC
llvm-svn: 306151
-rw-r--r--llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp b/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
index 2a4c9526dfc..21bdca655a1 100644
--- a/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
+++ b/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
@@ -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();
OpenPOWER on IntegriCloud