Those aren't the only resources. I could imagine XOR takes less energy because using it might activate less circuitry than SUB.
I'm not aware of any stories in the historical record of "real programmers" optimizing for power use, only for speed or code size.
I'm not aware of any stories in the historical record of "real programmers" optimizing for power use, only for speed or code size.