Return whether a compare is known from dominating conditions at ContextI.
Declared in <llvm/Analysis/ValueTracking.h>
std::optional<bool>
isImpliedByDomCondition(
CmpPredicate Pred,
Value const* LHS,
Value const* RHS,
Instruction const* ContextI,
DataLayout const& DL);
Known boolean value of the compare, or nullopt if unknown.
| Name | Description |
|---|---|
| Pred | Predicate of the compare to evaluate. |
| LHS | Left-hand operand of the compare. |
| RHS | Right-hand operand of the compare. |
| ContextI | Instruction providing the dominating-condition context. |
| DL | Data layout used by the implication analysis. |