[TrivialDeadness] Update function comment

isInstructionTriviallyDead also works for certain side-effecting
instructions.
Update incorrect comment (as suggested in D109917).
This commit is contained in:
Anna Thomas 2021-10-01 11:49:25 -04:00
parent 343b9e8590
commit f98a918d34
1 changed files with 2 additions and 1 deletions

View File

@ -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);