3 ms·
> Aside from implementation details
by a1369209993 7y ago
> Aside from implementation details
- ncmncm 7y agoPerformance is 100% implementation details, from top to bottom. And the only reason anybody uses a cmov instruction is for hoped-for better performance. There is hope that it doesn't squat a precious branch-prediction slot, hope that it doesn't incur a branch misprediction pipeline stall if it's taken, or not taken, hope that fewer instructions translates to fewer clock cycles, hope that what looks like a copy really just does a register-renaming accounting trick, ...