[PATCH] D34323: Add ArgMemOnly attribute to strlen and wcslen, i.e. they only read memory (string) passed to them.
Sanjoy Das via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 17 20:00:30 PDT 2017
sanjoy accepted this revision.
sanjoy added a comment.
This revision is now accepted and ready to land.
lgtm
================
Comment at: test/Transforms/LICM/strlen.ll:15
+
+; CHECK: attributes #0 = { argmemonly nounwind readonly }
+declare i64 @strlen(i8*)
----------------
Also check that #0 does, in fact, correspond to `strlen`.
https://reviews.llvm.org/D34323
More information about the llvm-commits
mailing list