Add the IceVariable::hasReg() method.

This is a cleaner way of testing whether a variable has a physical
register assigned to it, instead of the multitude of comparisons of
IceVariable::getRegNum() against zero.
More IceVariable::hasReg() related cleanup.

There should be no more explicit assumptions in the code that negative
versus non-negative determines the validity of a physical register
number.