fix typo; NFC

llvm-svn: 247287
This commit is contained in:
Sanjay Patel 2015-09-10 15:14:34 +00:00
parent 47ebc1660d
commit 59661459f1

View File

@ -2827,7 +2827,7 @@ static bool SimplifyBranchOnICmpChain(BranchInst *BI, IRBuilder<> &Builder,
Values.erase(std::unique(Values.begin(), Values.end()), Values.end()); Values.erase(std::unique(Values.begin(), Values.end()), Values.end());
// If Extra was used, we require at least two switch values to do the // If Extra was used, we require at least two switch values to do the
// transformation. A switch with one value is just an cond branch. // transformation. A switch with one value is just a conditional branch.
if (ExtraCase && Values.size() < 2) return false; if (ExtraCase && Values.size() < 2) return false;
// TODO: Preserve branch weight metadata, similarly to how // TODO: Preserve branch weight metadata, similarly to how