[llvm] r307425 - [Local] Update the comment for removeUnreachableBlocks.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 7 11:54:14 PDT 2017
Author: davide
Date: Fri Jul 7 11:54:14 2017
New Revision: 307425
URL: http://llvm.org/viewvc/llvm-project?rev=307425&view=rev
Log:
[Local] Update the comment for removeUnreachableBlocks.
It referenced a wrong function name, and didn't mention what the
second argument did. This should be slightly more accurate now.
Modified:
llvm/trunk/lib/Transforms/Utils/Local.cpp
Modified: llvm/trunk/lib/Transforms/Utils/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/Local.cpp?rev=307425&r1=307424&r2=307425&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/Local.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/Local.cpp Fri Jul 7 11:54:14 2017
@@ -1662,9 +1662,10 @@ void llvm::removeUnwindEdge(BasicBlock *
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);
More information about the llvm-commits
mailing list