xbolva00 added a comment. So what is proposed solution? 1, bail out if sanitize memory attributr 2, check for opt for size (as in expandMemcmp) 3, move this instcombine transformation into expandmemcmp pass Repository: rL LLVM https://reviews.llvm.org/D50233