]> granicus.if.org Git - llvm/commitdiff
[Local] Update the comment for removeUnreachableBlocks.
authorDavide Italiano <davide@freebsd.org>
Fri, 7 Jul 2017 18:54:14 +0000 (18:54 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 7 Jul 2017 18:54:14 +0000 (18:54 +0000)
It referenced a wrong function name, and didn't mention what the
second argument did. This should be slightly more accurate now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307425 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/Local.cpp

index e4c94acde52a1b179ea93a23cca32a1d08f9cb84..bc135852cd4f45f09ef14c55c517700343d3f6d6 100644 (file)
@@ -1662,9 +1662,10 @@ void llvm::removeUnwindEdge(BasicBlock *BB) {
   TI->eraseFromParent();
 }
 
-/// removeUnreachableBlocksFromFn - Remove blocks that are not reachable, even
+/// removeUnreachableBlocks - Remove blocks that are not reachable, even
 /// if they are in a dead cycle.  Return true if a change was made, false
-/// otherwise.
+/// otherwise. If `LVI` is passed, this function preserves LazyValueInfo
+/// after modifying the CFG.
 bool llvm::removeUnreachableBlocks(Function &F, LazyValueInfo *LVI) {
   SmallPtrSet<BasicBlock*, 16> Reachable;
   bool Changed = markAliveBlocks(F, Reachable);