HomePhabricator

[IR] Add a dedicated FNeg IR Instruction

Authored by cameron.mcinally on Nov 13 2018, 10:15 AM.

Description

[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

llvm-svn: 346774

Details