summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-07-07 18:54:14 +0000
committerDavide Italiano <davide@freebsd.org>2017-07-07 18:54:14 +0000
commit4eb210bdebe8303e63dd9135a7a4569d14e8b126 (patch)
tree71885babc9e8757d5c5c9c0a868c87fe938a12b1 /llvm/lib/Transforms/Utils/Local.cpp
parentaf7442abd0ad9b06235eb6a7b6b926de126934d1 (diff)
downloadbcm5719-llvm-4eb210bdebe8303e63dd9135a7a4569d14e8b126.tar.gz
bcm5719-llvm-4eb210bdebe8303e63dd9135a7a4569d14e8b126.zip
[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. llvm-svn: 307425
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index e4c94acde52..bc135852cd4 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -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);
OpenPOWER on IntegriCloud