Return true if an unused instruction is trivially dead.
Declared in <llvm/Transforms/Utils/Local.h>
bool
isInstructionTriviallyDead(
Instruction* I,
TargetLibraryInfo const* TLI = nullptr);
Return true if the result produced by the instruction is not used, and the instruction will return. Certain side-effecting instructions are also considered dead if there are no uses of the instruction.
True if the unused instruction is trivially dead.
| Name | Description |
|---|---|
| I | Instruction to test. |
| TLI | Optional target library info used for library-call analysis. |