[llvm-commits] [llvm] r49299 - /llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp

Duncan Sands baldrick at free.fr
Mon Apr 7 00:36:28 PDT 2008


> Mark calls to llvm.stacksave, llvm.stackrestore as
> nounwind.  When such calls are inlined into something
> else that is invoked, they were getting changed to invokes,
> which is badness.

>      CallInst *SavedPtr = CallInst::Create(StackSave, "savedstack", 
>                                            FirstNewBlock->begin());

if you get hold of an intrinsic using Intrinsic::getDeclaration then
it is automagically marked nounwind.  Is there any reason not to use
Intrinsic::getDeclaration here?



More information about the llvm-commits mailing list