Return true if an unused instruction is trivially dead.
Synopsis
Declared in <llvm/Transforms/Utils/Local.h>
bool
isInstructionTriviallyDead(
Instruction* I,
TargetLibraryInfo const* TLI = nullptr);
Description
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.
Return Value
True if the unused instruction is trivially dead.
Parameters
Name |
Description |
I |
Instruction to test. |
TLI |
Optional target library info used for library‐call analysis. |
Created with MrDocs