eliminate additions of 0.0 when they are obviously dead. This has to be careful to
authorChris Lattner <sabre@nondot.org>
Tue, 29 Jan 2008 06:52:45 +0000 (06:52 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 29 Jan 2008 06:52:45 +0000 (06:52 +0000)
commit2454a2e0c3372a92439fc08bb651b995e3beb3eb
treed233a22f8622270777e2bf27d8654800363ba816
parentcca1867ab7cd760109546ee2f899d28b79f8e2f8
eliminate additions of 0.0 when they are obviously dead.  This has to be careful to
avoid turning -0.0 + 0.0 -> -0.0 which is incorrect.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46499 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/zero-point-zero-add.ll [new file with mode: 0644]