Revert [InlineCost] cleanup calculations of Cost and Threshold
authorJordan Rupprecht <rupprecht@google.com>
Wed, 3 Jul 2019 04:01:51 +0000 (04:01 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Wed, 3 Jul 2019 04:01:51 +0000 (04:01 +0000)
commit02647f73d4a37274f3306e71e2c0dd2f268d0b85
tree369ec480f7c21f1cc2b7bc6981141064ed22eba2
parentd5bea6e0c1a43b19e01be4d95d99d066d2848cc2
Revert [InlineCost] cleanup calculations of Cost and Threshold

This reverts r364422 (git commit 1a3dc761860d620ac8ed7e32a4285952142f780b)

The inlining cost calculation is incorrect, leading to stack overflow due to large stack frames from heavy inlining.

llvm-svn: 365000
llvm/lib/Analysis/InlineCost.cpp
llvm/test/LTO/Resolution/X86/diagnostic-handler-remarks-with-hotness.ll
llvm/test/LTO/Resolution/X86/diagnostic-handler-remarks.ll
llvm/test/LTO/X86/diagnostic-handler-remarks-with-hotness.ll
llvm/test/LTO/X86/diagnostic-handler-remarks.ll
llvm/test/Transforms/Inline/ARM/inline-fp.ll