Commit 9d2a5b1c authored by Xin Tong's avatar Xin Tong
Browse files

Add argmononly attribute to strlen and wcslen, i.e. they only read memory (string) passed to them.

Summary:
This allows strlen to be moved out of the loop in case its argument is
not modified in the loop in LICM.

Reviewers: hfinkel, davide, sanjoy, dberlin

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D34323

llvm-svn: 305641
parent 90e4c3f3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment