diff options
author | Duncan Sands <baldrick@free.fr> | 2007-11-23 09:10:17 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-11-23 09:10:17 +0000 |
commit | 6c1ea126e08ca19f50e7a3331fed595b343e0d4e (patch) | |
tree | 8d741b3808c8d2b03b3f3928322bcb08a25f2e3e /lib | |
parent | 3fff464dce6c3c93fa7d5f664ed0ee81fddc3cce (diff) | |
download | external_llvm-6c1ea126e08ca19f50e7a3331fed595b343e0d4e.zip external_llvm-6c1ea126e08ca19f50e7a3331fed595b343e0d4e.tar.gz external_llvm-6c1ea126e08ca19f50e7a3331fed595b343e0d4e.tar.bz2 |
Remove some logic I thoughtlessly copied over
from the old ADCE implementation (there it was
correct because the transform was being done
for read-only functions).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/SimplifyCFG.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/SimplifyCFG.cpp b/lib/Transforms/Scalar/SimplifyCFG.cpp index 692a8af..3717a16 100644 --- a/lib/Transforms/Scalar/SimplifyCFG.cpp +++ b/lib/Transforms/Scalar/SimplifyCFG.cpp @@ -88,9 +88,6 @@ static void ChangeToCall(InvokeInst *II) { // Update PHI nodes in the unwind destination II->getUnwindDest()->removePredecessor(BB); BB->getInstList().erase(II); - - if (NewCall->use_empty()) - BB->getInstList().erase(NewCall); } /// IsNoReturn - Return true if the specified call is to a no-return function. |