1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/include/llvm/Transforms
Jakob Stoklund Olesen 189a55cc16 Try to keep the cached inliner costs around for a bit longer for big functions.
The Caller cost info would be reset everytime a callee was inlined. If the
caller has lots of calls and there is some mutual recursion going on, the
caller cost info could be calculated many times.

This patch reduces inliner runtime from 240s to 0.5s for a function with 20000
small function calls.

This is a more conservative version of r98089 that doesn't break the clang
test CodeGenCXX/temp-order.cpp. That test relies on rather extreme inlining
for constant folding.

llvm-svn: 98099
2010-03-09 23:02:17 +00:00
..
IPO Try to keep the cached inliner costs around for a bit longer for big functions. 2010-03-09 23:02:17 +00:00
Utils Move SimplifyLibCalls's LibCall builders to a separate file so they 2010-03-05 22:25:30 +00:00
Instrumentation.h remove the random sampling framework, which is not maintained anymore. 2010-01-02 20:07:03 +00:00
IPO.h Auto-upgrade free instructions to calls to the builtin free function. 2009-10-24 04:23:03 +00:00
RSProfiling.h Make a few more LLVM headers parsable as standalone headers. 2009-11-05 23:01:30 +00:00
Scalar.h Revert r97245 which seems to be causing performance problems. 2010-02-28 05:34:05 +00:00