Don't attempt to add 'nsw' when intermediate instructions had no such guarantee.
authorNick Lewycky <nicholas@mxc.ca>
Sun, 14 Aug 2011 03:41:33 +0000 (03:41 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 14 Aug 2011 03:41:33 +0000 (03:41 +0000)
commit7f0170c1975fe55c58f6f2a968e1fc2248732fbe
treefcc1c35b5f5d331f33390c9a2cc2fc8bc2b850ee
parentdaf27ea899fbd94a020cc6f4680279ea0ac65064
Don't attempt to add 'nsw' when intermediate instructions had no such guarantee.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137572 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstructionCombining.cpp
test/Transforms/InstCombine/nsw.ll