LLVM static branch prediction depends on cold attribute to annotate branch probability. This is currently not possible for cold function decls as the information is dropped by FE.
This patch attaches the attributes to the callsite as noReturn. Another way is to pass the attribute to the function decl.
Also need suggestions on how to add a clang test case.