As the test case in https://bugs.llvm.org/show_bug.cgi?id=36587 discovered, it is wrong to assume that all the aliases of the defined register in the *current function* is already present in the UsedPhysRegsMask.
This patch changes this so that any definition in the current function of a phys-reg always results in all its aliases inserted into the set of defined registers.
Nit: Please use opt -instnamer to get rid of the implicit variables