According to Intel Software Optimization Manual on Silvermont INC or DEC instructions
require an additional uop to merge the flags. As a result, a branch instruction depending on an INC or a DEC
instruction incurs a 1 cycle penalty.
This patch disables INC/DEC patterns for Silvermont under new feature flag "slow-incdec".
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Yes, the code with INC/DEC is actually slower on Silvermont than corresponding code with ADD.