[llvm-commits] [llvm] r44287 - /llvm/trunk/lib/Transforms/Scalar/SimplifyCFG.cpp
Duncan Sands
baldrick at free.fr
Fri Nov 23 01:10:17 PST 2007
Author: baldrick
Date: Fri Nov 23 03:10:17 2007
New Revision: 44287
URL: http://llvm.org/viewvc/llvm-project?rev=44287&view=rev
Log:
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).
Modified:
llvm/trunk/lib/Transforms/Scalar/SimplifyCFG.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/SimplifyCFG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SimplifyCFG.cpp?rev=44287&r1=44286&r2=44287&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SimplifyCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SimplifyCFG.cpp Fri Nov 23 03:10:17 2007
@@ -88,9 +88,6 @@
// 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.
More information about the llvm-commits
mailing list