commit | e0992b832c3cf73bccf557910a69c652a1e55c5f | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Feb 26 07:04:54 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Feb 26 07:04:54 2008 +0000 |
tree | 239334a199905e3921187f7b1936da02a8940465 | |
parent | 949c65d1ba2597e365c3df5c1cfbf2c4968c5154 [diff] |
Fix isNegatibleForFree to not return true for ConstantFP nodes after legalize. Just because a constant is legal (e.g. 0.0 in SSE) doesn't mean that its negated value is legal (-0.0). We could make this stronger by checking to see if the negated constant is actually legal post negation, but it doesn't seem like a big deal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47591 91177308-0d34-0410-b5e6-96231b3b80d8