Slight improvement to icmp lowering.

A "cmp [mem], const" doesn't need to load either source operand into a
register.

This could also be done for assignments, but it's not clear if that's
a good idea since the operand may have to be loaded into a register
shortly afterwards anyway.