llvm::isCheckForZeroAndMulWithOverflow

Return true if Op0 and Op1 match a zero check with mul-with-overflow.

Synopsis

Declared in <llvm/Analysis/OverflowInstAnalysis.h>

bool
isCheckForZeroAndMulWithOverflow(
    Value* Op0,
    Value* Op1,
    bool IsAnd);

Description

Convenience overload that ignores the matched multiplicand use.

Return Value

True if Op0 and Op1 match a zero check with mul-with-overflow.

Parameters

NameDescription
Op0Zero-comparison operand of the select or logic operation.
Op1Overflow-bit (or inverted overflow-bit) operand.
IsAndTrue for the and/select-false pattern; false for or/select-true.