diff options
author | Brian Homerding <homerdin@gmail.com> | 2019-07-08 15:57:56 +0000 |
---|---|---|
committer | Brian Homerding <homerdin@gmail.com> | 2019-07-08 15:57:56 +0000 |
commit | b4b21d807e4f47f1f87b05fddf6bb3167b14476e (patch) | |
tree | 2ca1fdfcf72d73e5d6245cbd845c3f372e0a9dc9 /llvm/test/Transforms/LoopIdiom/basic.ll | |
parent | b52a0c0cc88f0d66ae8ea770f92ed3448aee88a7 (diff) | |
download | bcm5719-llvm-b4b21d807e4f47f1f87b05fddf6bb3167b14476e.tar.gz bcm5719-llvm-b4b21d807e4f47f1f87b05fddf6bb3167b14476e.zip |
Add, and infer, a nofree function attribute
This patch adds a function attribute, nofree, to indicate that a function does
not, directly or indirectly, call a memory-deallocation function (e.g., free,
C++'s operator delete).
Reviewers: jdoerfert
Differential Revision: https://reviews.llvm.org/D49165
llvm-svn: 365336
Diffstat (limited to 'llvm/test/Transforms/LoopIdiom/basic.ll')
-rw-r--r-- | llvm/test/Transforms/LoopIdiom/basic.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/LoopIdiom/basic.ll b/llvm/test/Transforms/LoopIdiom/basic.ll index 076e0224b81..89d8dab0d68 100644 --- a/llvm/test/Transforms/LoopIdiom/basic.ll +++ b/llvm/test/Transforms/LoopIdiom/basic.ll @@ -709,4 +709,4 @@ exit: ; Validate that "memset_pattern" has the proper attributes. ; CHECK: declare void @memset_pattern16(i8* nocapture, i8* nocapture readonly, i64) [[ATTRS:#[0-9]+]] -; CHECK: [[ATTRS]] = { argmemonly } +; CHECK: [[ATTRS]] = { argmemonly nofree } |