diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-01-13 21:56:08 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-01-21 20:29:33 +0100 |
commit | 65fd034b95d69fa0e634861ee165b502ceb92a12 (patch) | |
tree | 9d6d988e028f402dee76494ba8a917b7404ac8e9 /llvm/unittests/ADT/SmallVectorTest.cpp | |
parent | f2fd41d7897e1cc8fc6e9fb2ea46e5b6527852e4 (diff) | |
download | llvm-65fd034b95d69fa0e634861ee165b502ceb92a12.zip llvm-65fd034b95d69fa0e634861ee165b502ceb92a12.tar.gz llvm-65fd034b95d69fa0e634861ee165b502ceb92a12.tar.bz2 |
[FunctionAttrs] Infer willreturn for functions without loops
If a function doesn't contain loops and does not call non-willreturn
functions, then it is willreturn. Loops are detected by checking
for backedges in the function. We don't attempt to handle finite
loops at this point.
Differential Revision: https://reviews.llvm.org/D94633
Diffstat (limited to 'llvm/unittests/ADT/SmallVectorTest.cpp')
0 files changed, 0 insertions, 0 deletions