This function can be used to accumulate the set of all read and modified
register in a sequence of instructions.
Use this code in RegisterScavenging.cpp:findSurvivorBackwards() and
AArch64A57FPLoadBalancing::scavengeRegister():
- The register scavenging code is a bit more efficient since we avoid needless transformation of a register unit live set into a register live set.
- The behaviour of findSurvivorBackwards() is slightly changed: In case of multiple possibilities the first register in the register class instead of the one with the smallest number is picked.
- The AArch64A57LoadBalancing code is using a backwards analysis now which is irrespective of kill flags. This is the main motivation for this change.
Rename into addRegsNotPreservedByMask.