fix a bug (possibly 8816) in the sadd forming xform: it isn't
authorChris Lattner <sabre@nondot.org>
Sun, 19 Dec 2010 17:59:02 +0000 (17:59 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 19 Dec 2010 17:59:02 +0000 (17:59 +0000)
commit368397bb7de8318a4663fec846bda714ae78dd7a
tree61fdd21578b0689f8c7ab07eccaf3a61c26d4cd6
parentf0f568b49e111da1258902b73a7b9266222e1842
fix a bug (possibly 8816) in the sadd forming xform: it isn't
profitable (or safe) to promote code when the add-with-constant
has other uses.

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