Enable the inlinehint attribute in the Inliner.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 13 Feb 2010 01:51:53 +0000 (01:51 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 13 Feb 2010 01:51:53 +0000 (01:51 +0000)
commitf0907fe59093753fe5a9e8fe5adc399dbdc94627
tree75556242d62e839f4526aac4cfc277c6ad8ca59f
parent95a5a7d57015c21b355a351c2efc6866f89b2f61
Enable the inlinehint attribute in the Inliner.

Functions explicitly marked inline will get an inlining threshold slightly
more aggressive than the default for -O3. This means than -O3 builds are
mostly unaffected while -Os builds will be a bit bigger and faster.

The difference depends entirely on how many 'inline's are sprinkled on the
source.

In the CINT2006 suite, only these tests are significantly affected under -Os:

               Size   Time
471.omnetpp   +1.63% -1.85%
473.astar     +4.01% -6.02%
483.xalancbmk +4.60%  0.00%

Note that 483.xalancbmk runs too quickly to give useful timing results.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96066 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/Inliner.cpp