[PATCH] D68089: [InstCombine] Optimize some memccpy calls to memcpy/null

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 16:21:42 PDT 2019


xbolva00 added a comment.

>> I think it's possible for there to be valid data after the array returned by getConstantStringInfo, in some cases.

Sorry I misunderstood you. I added test with string like "blabla\0x" and stop char is 'x'. As test shows, we leave this case as is.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68089/new/

https://reviews.llvm.org/D68089





More information about the llvm-commits mailing list