Fix bug with previous implementation:
authorChris Lattner <sabre@nondot.org>
Wed, 5 Nov 2003 01:06:05 +0000 (01:06 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 5 Nov 2003 01:06:05 +0000 (01:06 +0000)
commitd65460f133f392953492888201afe06dce84ee8e
tree048312f614ea617106c4887d6ebd75f21943b0f9
parent9716eb7676503d35e0542310f270ce954284b320
Fix bug with previous implementation:
-      // ~(c-X) == X-(c-1) == X+(-c+1)
+      // ~(c-X) == X-c-1 == X+(-c-1)

Implement: C - ~X == X + (1+C)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9715 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp