commit | ca8cb6852b59f4cbfc311415aab0d5a7ce0616b4 | [log] [tgz] |
---|---|---|
author | Cameron McInally <cameron.mcinally@nyu.edu> | Tue Nov 13 18:15:47 2018 +0000 |
committer | Cameron McInally <cameron.mcinally@nyu.edu> | Tue Nov 13 18:15:47 2018 +0000 |
tree | 6bb3bd1df28784c6360f2be2c60324844b921230 | |
parent | 3eec80d6b73c4891dd66a5cbc6e5d168d0658dee [diff] |
[IR] Add a dedicated FNeg IR Instruction The IEEE-754 Standard makes it clear that fneg(x) and fsub(-0.0, x) are two different operations. The former is a bitwise operation, while the latter is an arithmetic operation. This patch creates a dedicated FNeg IR Instruction to model that behavior. Differential Revision: https://reviews.llvm.org/D53877 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346774 91177308-0d34-0410-b5e6-96231b3b80d8