bkramer added a comment. This looks overly specific. Can you teach GetStringLength about this instead? All of the transformations should already work if GetStringLength returns a length of zero. Repository: rL LLVM https://reviews.llvm.org/D47059