forked from OSchip/llvm-project
[TrivialDeadness] Update function comment
isInstructionTriviallyDead also works for certain side-effecting instructions. Update incorrect comment (as suggested in D109917).
This commit is contained in:
parent
343b9e8590
commit
f98a918d34
|
@ -78,7 +78,8 @@ bool ConstantFoldTerminator(BasicBlock *BB, bool DeleteDeadConditions = false,
|
|||
//
|
||||
|
||||
/// Return true if the result produced by the instruction is not used, and the
|
||||
/// instruction has no side effects.
|
||||
/// instruction will return. Certain side-effecting instructions are also
|
||||
/// considered dead if there are no uses of the instruction.
|
||||
bool isInstructionTriviallyDead(Instruction *I,
|
||||
const TargetLibraryInfo *TLI = nullptr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue