Avoid creating a SlotIndex from the end() iterator.

No test case, spotted by inspection.
Rewrite the physreg part of findLastUseBefore().

To find the last use of a register unit, start from the bottom and scan
upwards until a user is found.

<rdar://problem/13353090>