ΒΆbool isInstructionTriviallyDead(
llvm::Instruction* I,
const llvm::TargetLibraryInfo* TLI = nullptr)
bool isInstructionTriviallyDead(
llvm::Instruction* I,
const llvm::TargetLibraryInfo* 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.
Declared at: llvm/include/llvm/Transforms/Utils/Local.h:73
Parameters
- llvm::Instruction* I
- const llvm::TargetLibraryInfo* TLI = nullptr