llvm::simplifyFCmpInst

Given operands for an FCmpInst, fold the result or return null.

Synopsis

Declared in <llvm/Analysis/InstructionSimplify.h>

Value*
simplifyFCmpInst(
    CmpPredicate Predicate,
    Value* LHS,
    Value* RHS,
    FastMathFlags FMF,
    SimplifyQuery const& Q);

Return Value

The folded value, or null if no simplification was found.

Parameters

NameDescription
PredicateFloating-point comparison predicate.
LHSLeft-hand side operand.
RHSRight-hand side operand.
FMFFast-math flags to honor while folding.
QSimplification query providing analyses and flags.