Check if values in VL are selects convertible to a min/max intrinsic.
Synopsis
Declared in <llvm/Analysis/ValueTracking.h>
std::pair<Intrinsic::ID, bool>
canConvertToMinOrMaxIntrinsic(ArrayRef<Value*> VL);
Description
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.
Return Value
Matching intrinsic ID and whether conditions are select‐only.
Parameters
Name |
Description |
VL |
Select values to consider for conversion. |
Created with MrDocs