llvm::Instruction::isIdempotent

Return true if the instruction is idempotent.

Synopsis

Declared in <llvm/IR/Instruction.h>

bool
isIdempotent() const;

Description

Idempotent operators satisfy: x op x === x

In LLVM, the And and Or operators are idempotent.

Return Value

True if this instruction is idempotent.