What happens if the 'add' and 'cmp' are in different blocks? If we're doing this for codegen, I don't think we want to reorder flag producing instructions. http://reviews.llvm.org/D8889 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/