This patch enables FeatureSlowIncDec for Haswell and Broadwell processors.
This feature was enabled for KNL and SKX CPUs before.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
I do not see the relationship between the test case and the feature you are adding.
I would expect the test case to use a Haswell and a Broadwell processor.
Any performance numbers on this change?
Thanks.
-Quentin
This test is for feature slow-incdec which is enabled also for Silvermont, KNL and SKX.
I see from other tests that this is common practice to test features itself and not to test that CPU has some feature.
I didn't see major performance impact due to this change, only small improvements on some SPEC2000 tests (by 1-2%).
I enabled this feature per Intel optimization manual:
Assembly/Compiler Coding Rule33. (M impact, H generality)INC and DEC instructions should
be replaced with ADD or SUB instructions, because ADD and SUB overwrite all flags, whereas INC and
DEC do not, therefore creating false dependencies on earlier instructions that set the flags.
Also GCC avoids generation of INC/DEC and uses ADD and SUB.