ΒΆstd::pair<Intrinsic::ID, bool>
canConvertToMinOrMaxIntrinsic(
    ArrayRef<llvm::Value*> VL)

Description

Check if the values in \p VL are select instructions that can be converted to a min or max (vector) intrinsic. Returns the intrinsic ID, if such a conversion is possible, together with a bool indicating whether all select conditions are only used by the selects. Otherwise return Intrinsic::not_intrinsic.

Declared at: llvm/include/llvm/Analysis/ValueTracking.h:798

Parameters

ArrayRef<llvm::Value*> VL