Fix bug 537 test 2, which checks to make sure that we fold A+(B-A) -> B for
authorNate Begeman <natebegeman@mac.com>
Thu, 16 Jun 2005 07:06:03 +0000 (07:06 +0000)
committerNate Begeman <natebegeman@mac.com>
Thu, 16 Jun 2005 07:06:03 +0000 (07:06 +0000)
commit41aaf7016ebf205d8b02c857461f679a3e82f9d0
tree82c5d16ffe1144c15b02d917bed1947816536513
parentf9c775c22e0ac3eb520d8b4dc89d3f16f274ebb6
Fix bug 537 test 2, which checks to make sure that we fold A+(B-A) -> B for
integer types.  Add a couple checks to not perform these kinds of transform
on floating point values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22228 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp