该选项是Arm相关指令优化:增强ccmp指令使用场景,简化指令流水
针对如下代码场景:
1 2 3 4 5 6 7 8 9 10
int f(int a, int b, int c) { while(1) { if (a--==0||b>=c ) { return 1; } } }
成功使能ccmp指令,可以生成如下汇编代码:
增加编译选项 -fccmp2
SPEC性能提升效果:SPECCPU2017 intrate 557.xz_r子项性能提升约1%