diff options
author | Stefan Stipanovic <sstipanovic@s-energize.com> | 2019-07-22 20:54:30 +0000 |
---|---|---|
committer | Stefan Stipanovic <sstipanovic@s-energize.com> | 2019-07-22 20:54:30 +0000 |
commit | 9285295f75a231dc446fa7cbc10a0a391b3434a5 (patch) | |
tree | 8a776cc2f6c3ede2a8c6ce224fcf96c0469e1652 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | e35c5121da5832195a17a85c498edfe9e51f6bd2 (diff) | |
download | llvm-9285295f75a231dc446fa7cbc10a0a391b3434a5.zip llvm-9285295f75a231dc446fa7cbc10a0a391b3434a5.tar.gz llvm-9285295f75a231dc446fa7cbc10a0a391b3434a5.tar.bz2 |
[Attributor] Liveness analysis.
Liveness analysis abstract attribute used to indicate which BasicBlocks are dead and can therefore be ignored.
Right now we are only looking at noreturn calls.
Reviewers: jdoerfert, uenoku
Subscribers: hiraditya, llvm-commits
Differential revision: https://reviews.llvm.org/D64162
llvm-svn: 366736
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index be16054..62c7dd6 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -1964,7 +1964,7 @@ unsigned llvm::changeToUnreachable(Instruction *I, bool UseLLVMTrap, } /// changeToCall - Convert the specified invoke into a normal call. -static void changeToCall(InvokeInst *II, DomTreeUpdater *DTU = nullptr) { +void llvm::changeToCall(InvokeInst *II, DomTreeUpdater *DTU = nullptr) { SmallVector<Value*, 8> Args(II->arg_begin(), II->arg_end()); SmallVector<OperandBundleDef, 1> OpBundles; II->getOperandBundlesAsDefs(OpBundles); |