Split up subtracts into add+negate if they have a reassociable use or operand
authorChris Lattner <sabre@nondot.org>
Sun, 17 Feb 2008 20:51:26 +0000 (20:51 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 17 Feb 2008 20:51:26 +0000 (20:51 +0000)
commit0b0803ae1508ff514dd7b471a2a3bcd1e83cb0ef
tree14c62f7634cd8cca1b6beeef3e942ed56d95d5e0
parentf06c3c29acb5560f27d18f8498cefcd4f58be08b
Split up subtracts into add+negate if they have a reassociable use or operand
that is also a subtract.  This implements PR2047 and Transforms/Reassociate/subtest2.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47241 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Reassociate.cpp
test/Transforms/Reassociate/subtest2.ll [new file with mode: 0644]