forked from OSchip/llvm-project
[CorrelatedValuePropagation] Remove comment about iterating switch cases in reverse order. This is no longer being done after r298791. NFC
llvm-svn: 306151
This commit is contained in:
parent
5f09852dfb
commit
29cdfe2cd9
|
@ -232,8 +232,7 @@ static bool processSwitch(SwitchInst *SI, LazyValueInfo *LVI) {
|
||||||
pred_iterator PB = pred_begin(BB), PE = pred_end(BB);
|
pred_iterator PB = pred_begin(BB), PE = pred_end(BB);
|
||||||
if (PB == PE) return false;
|
if (PB == PE) return false;
|
||||||
|
|
||||||
// Analyse each switch case in turn. This is done in reverse order so that
|
// Analyse each switch case in turn.
|
||||||
// removing a case doesn't cause trouble for the iteration.
|
|
||||||
bool Changed = false;
|
bool Changed = false;
|
||||||
for (auto CI = SI->case_begin(), CE = SI->case_end(); CI != CE;) {
|
for (auto CI = SI->case_begin(), CE = SI->case_end(); CI != CE;) {
|
||||||
ConstantInt *Case = CI->getCaseValue();
|
ConstantInt *Case = CI->getCaseValue();
|
||||||
|
|
Loading…
Reference in New Issue