<div dir="ltr"><div>Hi all,<br></div><div><br></div><div>This patch (<a href="https://reviews.llvm.org/D83392">https://reviews.llvm.org/D83392</a>) extends loop idiom recognize by including the
recognition of strlen and transforming it to a function call. It is the first part of 3 patches: the second patch will
also identify strlens of 16 bit char length and replace them with a new
strlen16 intrinsic. The third patch would see if any strlen/strlen16 are only used in zero equality comparisons, and if so, fold them to a load
of the first element (giving some performance benefits). If a call to strlen16 intrinsic cannot be folded, it would be expanded back out to the canonical loop form.</div><div><br></div><div>Any comments about this would be appreciated.</div></div>