[llvm-commits] [llvm] r137743 - /llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp

Bill Wendling isanbard at gmail.com
Tue Aug 16 13:41:17 PDT 2011


Author: void
Date: Tue Aug 16 15:41:17 2011
New Revision: 137743

URL: http://llvm.org/viewvc/llvm-project?rev=137743&view=rev
Log:
I think there was some confusion about what I meant. :-) Replacing the comment.


Modified:
    llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp

Modified: llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp?rev=137743&r1=137742&r2=137743&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp Tue Aug 16 15:41:17 2011
@@ -2266,7 +2266,10 @@
                  !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)





More information about the llvm-commits mailing list