Would it work if you change memset to something that is unlikely to be optimized, like write(1, p, 2) ? http://reviews.llvm.org/D6776 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/