Return true if the instruction can be removed if the result is unused.
Synopsis
Declared in <llvm/IR/Instruction.h>
bool
isSafeToRemove() const;
Description
When constant folding some instructions cannot be removed even if their results are unused. Specifically terminator instructions and calls that may have side effects cannot be removed without semantically changing the generated program.
Return Value
True if an unused result allows removing this instruction.
Created with MrDocs