From 3333e668221f52f8c708df0037ee9c4bf2417929 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Fri, 21 Dec 2012 11:18:49 +0000 Subject: [msan] Remove unreachable blocks before instrumenting a function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170883 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/Utils/Local.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/llvm/Transforms/Utils/Local.h') diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h index 0c3be28..de1caa3 100644 --- a/include/llvm/Transforms/Utils/Local.h +++ b/include/llvm/Transforms/Utils/Local.h @@ -257,6 +257,11 @@ DbgDeclareInst *FindAllocaDbgDeclare(Value *V); bool replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress, DIBuilder &Builder); +/// \brief Remove all blocks that can not be reached from the function's entry. +/// +/// Returns true if any basic block was removed. +bool removeUnreachableBlocks(Function &F); + } // End llvm namespace #endif -- cgit v1.1