ΒΆllvm::Value* simplifyWithOpReplaced(
    llvm::Value* V,
    llvm::Value* Op,
    llvm::Value* RepOp,
    const llvm::SimplifyQuery& Q,
    bool AllowRefinement)

Description

See if V simplifies when its operand Op is replaced with RepOp. If not, return null. AllowRefinement specifies whether the simplification can be a refinement (e.g. 0 instead of poison), or whether it needs to be strictly identical.

Declared at: llvm/include/llvm/Analysis/InstructionSimplify.h:333

Parameters

llvm::Value* V
llvm::Value* Op
llvm::Value* RepOp
const llvm::SimplifyQuery& Q
bool AllowRefinement