Given operands for a Sub, fold the result or return null.
Declared in <llvm/Analysis/InstructionSimplify.h>
Value*
simplifySubInst(
Value* LHS,
Value* RHS,
bool IsNSW,
bool IsNUW,
SimplifyQuery const& Q);
The folded value, or null if no simplification was found.
| Name | Description |
|---|---|
| LHS | Left-hand side operand. |
| RHS | Right-hand side operand. |
| IsNSW | Whether the sub has the nsw flag. |
| IsNUW | Whether the sub has the nuw flag. |
| Q | Simplification query providing analyses and flags. |