Fix an incorrect logic causing instcombine to miss some _chk -> non-chk transformations.