Make instcombine promote inline asm calls to 'nounwind'
[oota-llvm.git] / lib / Transforms / Utils / InlineFunction.cpp
index e9f6b28e98b5259853d784452e9e069aba702c43..3d31f71300ac7855ff59c48afd10c3b6b27156c7 100644 (file)
@@ -69,9 +69,8 @@ static void HandleInlinedInvoke(InvokeInst *II, BasicBlock *FirstNewBlock,
           if (!isa<CallInst>(I)) continue;
           CallInst *CI = cast<CallInst>(I);
 
-          // If this call cannot unwind or is an inline asm, don't
-          // convert it to an invoke.
-          if (CI->isNoUnwind() || isa<InlineAsm>(CI->getCalledValue()))
+          // If this call cannot unwind, don't convert it to an invoke.
+          if (CI->isNoUnwind())
             continue;
 
           // Convert this function call into an invoke instruction.