efriedma added a comment. instcombine is allowed to use nsw to permit transformations which would otherwise be illegal. instcombine should not avoid transformations for fear of dropping nsw or other metadata. https://reviews.llvm.org/D29729