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 | b23192f48354af0d069c343e4725ab24a2671ec0 (patch) | |
tree | 82d08a1114a9f58316a54d8eda52baa351a276b4 /llvm/lib/Transforms/Scalar/SimplifyCFG.cpp | |
parent | a8fbde3f783fa716252f086639c8027577294b44 (diff) | |
download | bcm5719-llvm-b23192f48354af0d069c343e4725ab24a2671ec0.tar.gz bcm5719-llvm-b23192f48354af0d069c343e4725ab24a2671ec0.zip |
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).
llvm-svn: 44287
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimplifyCFG.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SimplifyCFG.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp b/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp index 692a8af0a2a..3717a161aef 100644 --- a/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp +++ b/llvm/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. |