[PATCH] D94502: [FunctionAttrs] Derive willreturn for fns with readonly` & `mustprogress`.
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 12 09:29:37 PST 2021
nikic accepted this revision.
nikic added a comment.
LGTM as well.
================
Comment at: llvm/test/Transforms/FunctionAttrs/willreturn.ll:4
define void @mustprogress_readnone() mustprogress {
-; CHECK-NOT: Function Attrs: {{.*}} willreturn
-; CHECK: define void @mustprogress_readnone()
+; CHECK: Function Attrs: {{.*}} noreturn {{.*}} readnone illreturn
+; CHECK-NEXT: define void @mustprogress_readnone()
----------------
illreturn :)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94502/new/
https://reviews.llvm.org/D94502
More information about the llvm-commits
mailing list