[SimplifyCFG] Fix typo in comment. NFC

llvm-svn: 309785
This commit is contained in:
Craig Topper 2017-08-02 02:34:16 +00:00
parent 95055d8f8b
commit 36af40c115
1 changed files with 1 additions and 1 deletions

View File

@ -2507,7 +2507,7 @@ bool llvm::FoldBranchToCommonDest(BranchInst *BI, unsigned BonusInstThreshold) {
else {
// For unconditional branch, check for a simple CFG pattern, where
// BB has a single predecessor and BB's successor is also its predecessor's
// successor. If such pattern exisits, check for CSE between BB and its
// successor. If such pattern exists, check for CSE between BB and its
// predecessor.
if (BasicBlock *PB = BB->getSinglePredecessor())
if (BranchInst *PBI = dyn_cast<BranchInst>(PB->getTerminator()))