Fix multiple reg alloc bugs in xor.

Managed to get lifetimes wrong AND double-release in some cases.