Add some more helper functions to ReachingDefs to query the uses of a given MachineInstr and also to query whether two MachineInstrs use the same def of a register. For Arm, while tail-predicating, these helpers are used in the low-overhead loops to remove the dead code that calculates the number of loop iterations.
There's some duplicate code in here, from the parent patch, for including RDA in the pass.
Does this detect other uses outside of the BB? If the value is live-out.