[llvm-commits] [llvm] r146851 - in /llvm/trunk: include/llvm/Analysis/CodeMetrics.h include/llvm/CodeGen/MachineFunction.h lib/Analysis/InlineCost.cpp lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp lib/CodeGen/StackSlotColoring.cpp test/Transforms/Inline/inline_returns_twice.ll

Duncan Sands baldrick at free.fr
Tue Dec 27 12:12:26 PST 2011


Hi Joerg,

> Allow inlining of functions with returns_twice calls, if they have the
> attribute themselve.

> --- llvm/trunk/include/llvm/Analysis/CodeMetrics.h (original)
> +++ llvm/trunk/include/llvm/Analysis/CodeMetrics.h Sun Dec 18 14:35:43 2011
> @@ -31,8 +31,9 @@
>       /// caller.
>       // bool NeverInline;
>
> -    // True if this function contains a call to setjmp or _setjmp
> -    bool callsSetJmp;
> +    // True if this function contains a call to setjmp or other functions
> +    // with attribute "returns twice" without having the attribute by itself.

by itself -> itself

> +    bool exposesReturnsTwice;
>
>       // True if this function calls itself
>       bool isRecursive;

Ciao, Duncan.



More information about the llvm-commits mailing list