Given operands for an ICmpInst, fold the result or return null.
Declared in <llvm/Analysis/InstructionSimplify.h>
Value*
simplifyICmpInst(
CmpPredicate Pred,
Value* LHS,
Value* RHS,
SimplifyQuery const& Q);
The folded value, or null if no simplification was found.
| Name | Description |
|---|---|
| Pred | Integer comparison predicate. |
| LHS | Left-hand side operand. |
| RHS | Right-hand side operand. |
| Q | Simplification query providing analyses and flags. |