[llvm-commits] [llvm] r160411 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Nuno Lopes nunoplopes at sapo.pt
Tue Jul 17 17:07:17 PDT 2012


Author: nlopes
Date: Tue Jul 17 19:07:17 2012
New Revision: 160411

URL: http://llvm.org/viewvc/llvm-project?rev=160411&view=rev
Log:
ignore 'invoke @llvm.donothing', but still keep the edge to the continuation BB

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp?rev=160411&r1=160410&r2=160411&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Tue Jul 17 19:07:17 2012
@@ -1833,7 +1833,7 @@
     visitInlineAsm(&I);
   else if (Fn && Fn->isIntrinsic()) {
     assert(Fn->getIntrinsicID() == Intrinsic::donothing);
-    return; // ignore invokes to @llvm.donothing
+    // Ignore invokes to @llvm.donothing: jump directly to the next BB.
   } else
     LowerCallTo(&I, getValue(Callee), false, LandingPad);
 





More information about the llvm-commits mailing list