The earlier usage of wouldInstructionBeTriviallyDead is based on the
assumption that the use_count of that instruction being checked will be
zero. This patch separates the API into two different ones:
- The strictly conservative one where the instruction is trivially dead iff the uses are dead.
- The slightly relaxed form, where an instruction is dead along paths where it is not used.
The second form can be used in identifying instructions that are valid
to sink down to uses (patch to be updated in D109917).
I'd leave off the naming suffix here. I think the original name is sufficiently clear.
(i.e. "trivial dead" continues to mean "along all paths")