Outline non returning functions unless a longjmp
authorAK <1894981+hiraditya@users.noreply.github.com>
Sun, 2 Aug 2020 02:15:05 +0000 (19:15 -0700)
committerAK <1894981+hiraditya@users.noreply.github.com>
Sun, 2 Aug 2020 05:16:14 +0000 (22:16 -0700)
commit20797989ea190f2ef22d13c5a7a0535fe9afa58b
treef6dda6e9423c815b9a1ad46a82c4e4c486e2b8c0
parent60434989e5cd718e0f84c7601f648aecd1e8e1eb
Outline non returning functions unless a longjmp

__assert_fail, abort, exit etc. are cold.
TODO: outline throw

Authored by: rjf (Ruijie Fang)
Reviewed by: hiraditya,tejohnson,fhahn

Differential Revision: https://reviews.llvm.org/D69257
llvm/lib/Transforms/IPO/HotColdSplitting.cpp
llvm/test/Transforms/HotColdSplit/longjmp-nosplit.ll [new file with mode: 0644]
llvm/test/Transforms/HotColdSplit/longjmp-split.ll [new file with mode: 0644]
llvm/test/Transforms/HotColdSplit/sjlj-nosplit.ll [new file with mode: 0644]
llvm/test/Transforms/HotColdSplit/sjlj-split.ll [new file with mode: 0644]
llvm/test/Transforms/HotColdSplit/split-assert-fail.ll [new file with mode: 0644]