Avoid creating garbage instructions, just move the old add instruction
authorChris Lattner <sabre@nondot.org>
Fri, 2 Sep 2005 06:38:04 +0000 (06:38 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 2 Sep 2005 06:38:04 +0000 (06:38 +0000)
commit2cd85da3ed8e703729fb5adfe8cc2f9b1dd2f6a8
tree0e176175a1c41d50979346daa672bb565ca8ade9
parentd6c69e9bba71d647e7bfe03de91242b57f618dde
Avoid creating garbage instructions, just move the old add instruction
to where we need it when converting -(A+B+C) -> -A + -B + -C.

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