ΒΆbool wouldInstructionBeTriviallyDead(
llvm::Instruction* I,
const llvm::TargetLibraryInfo* TLI = nullptr)
bool wouldInstructionBeTriviallyDead(
llvm::Instruction* I,
const llvm::TargetLibraryInfo* TLI = nullptr)
Description
Return true if the result produced by the instruction would have no side effects if it was not used. This is equivalent to checking whether isInstructionTriviallyDead would be true if the use count was 0.
Declared at: llvm/include/llvm/Transforms/Utils/Local.h:137
Parameters
- llvm::Instruction* I
- const llvm::TargetLibraryInfo* TLI = nullptr