Inliner: Don't mark notail calls with the 'tail' attribute
authorArnold Schwaighofer <aschwaighofer@apple.com>
Mon, 27 Nov 2017 19:03:40 +0000 (19:03 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Mon, 27 Nov 2017 19:03:40 +0000 (19:03 +0000)
commitd9e710984d169280e613b229974ceea22f7132fc
tree1e3ea47d5a11501c04d9b151917cfa81db943d2d
parent14d7aac15dafa4e2622dd9ba284044977d40363f
Inliner: Don't mark notail calls with the 'tail' attribute

enum TailCallKind { TCK_None = 0, TCK_Tail = 1, TCK_MustTail = 2,
                    TCK_NoTail = 3 };

TCK_NoTail is greater than TCK_Tail so taking the min does not do the
correct thing.

rdar://35639547

llvm-svn: 319075
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/test/Transforms/Inline/inline-tail.ll