summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-08-16 20:41:17 +0000
committerBill Wendling <isanbard@gmail.com>2011-08-16 20:41:17 +0000
commit55d875fa1c1903ab9292c84f188e2028fb7a6469 (patch)
treeca5429c0b2422dfd18b03a64389ce2ddee99a20c /llvm/lib
parentd152e2cc008a80468b76a1b4046ad924cabd83d3 (diff)
downloadbcm5719-llvm-55d875fa1c1903ab9292c84f188e2028fb7a6469.tar.gz
bcm5719-llvm-55d875fa1c1903ab9292c84f188e2028fb7a6469.zip
I think there was some confusion about what I meant. :-) Replacing the comment.
llvm-svn: 137743
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 9f2c311601e..2d60c35afb1 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -2266,7 +2266,10 @@ bool SimplifyCFGOpt::SimplifyUnreachable(UnreachableInst *UI) {
!isa<LandingPadInst>(BBI)) {
break;
}
- // FIXME: Handling of LandingPadInst (landingpad) is suspicious.
+ // Note that deleting LandingPad's here is in fact okay, although it
+ // involves a bit of subtle reasoning. If this inst is a LandingPad,
+ // all the predecessors of this block will be the unwind edges of Invokes,
+ // and we can therefore guarantee this block will be erased.
}
// Delete this instruction (any uses are guaranteed to be dead)
OpenPOWER on IntegriCloud