llvm::predicatesFoldable

Return true if both predicates match sign or if at least one of them is an equality comparison (which is signless).

Synopsis

Declared in <llvm/Analysis/CmpInstAnalysis.h>

bool
predicatesFoldable(
    CmpInst::Predicate P1,
    CmpInst::Predicate P2);

Return Value

True if the predicates share a sign or either is an equality.

Parameters

NameDescription
P1First compare predicate.
P2Second compare predicate.