summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-12-07 20:24:04 +0000
committerVedant Kumar <vsk@apple.com>2018-12-07 20:24:04 +0000
commit03f9f15b16878e9a487429a39da6cb1934c27a15 (patch)
treed7b248a3b39a41baa22480129c5c81f9f6755e28 /clang
parent03aaa3e2aa37b311999c6af567871325c2fa049f (diff)
downloadbcm5719-llvm-03f9f15b16878e9a487429a39da6cb1934c27a15.tar.gz
bcm5719-llvm-03f9f15b16878e9a487429a39da6cb1934c27a15.zip
[HotColdSplitting] Refine definition of unlikelyExecuted
The splitting pass uses its 'unlikelyExecuted' predicate to statically decide which blocks are cold. - Do not treat noreturn calls as if they are cold unless they are actually marked cold. This is motivated by functions like exit() and longjmp(), which are not beneficial to outline. - Do not treat inline asm as an outlining barrier. In practice asm("") is frequently used to inhibit basic block merging; enabling outlining in this case results in substantial memory savings. - Treat invokes of cold functions as cold. As a drive-by, remove the 'exceptionHandlingFunctions' predicate, because it's no longer needed. The pass can identify & outline blocks dominated by EH pads, so there's no need to special-case __cxa_begin_catch etc. Differential Revision: https://reviews.llvm.org/D54244 llvm-svn: 348640
Diffstat (limited to 'clang')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud