fix PR9215, preventing -reassociate from clearing nsw/nuw when
authorChris Lattner <sabre@nondot.org>
Thu, 17 Feb 2011 01:29:24 +0000 (01:29 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 17 Feb 2011 01:29:24 +0000 (01:29 +0000)
commitde1d8a544c1398cc34d4c865c5afa8b91f96316c
treeea676b34a211d99f61523687398a820ff2230913
parent5653f1f9046c6c954e6f74869ca927611c050938
fix PR9215, preventing -reassociate from clearing nsw/nuw when
it swaps the LHS/RHS of a single binop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125700 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Reassociate.cpp
test/Transforms/Reassociate/optional-flags.ll