HomePhabricator

Add support for fast-math flags to the FCmp instruction.

Description

Add support for fast-math flags to the FCmp instruction.

FCmp behaves a lot like a floating-point binary operator in many ways,
and can benefit from fast-math information. Flags such as nsz and nnan
can affect if this fcmp (in combination with a select) can be treated
as a fminnum/fmaxnum operation.

This adds backwards-compatible bitcode support, IR parsing and writing,
LangRef changes and IRBuilder changes. I'll need to audit InstSimplify
and InstCombine in a followup to find places where flags should be
copied.

Details

Committed
jamesmJul 10 2015, 5:52 AM
Parents
rL241900: Add missing builtins to the PPC back end for ABI compliance (vol. 3)
Branches
Unknown
Tags
Unknown