Comment Comment by flqn Since the optimiser is allowed to assume you're not invoking UB, and strlen of null is UB, I don't believe that it would consider that case when optimising this function. parent flqn 11 months ago