在 2024/4/1 上午9:29, Xi Ruoyao 写道:
On Fri, 2024-03-29 at 09:23 +0800, chenglulu wrote:
I tested spec2006. In the floating-point program, the test items with large
fluctuations are removed, and the rest is basically unchanged.
The fixed-point 464.h264ref (10,10) was 6.7% higher than (5,5) and (10,22).
So IIUC (10,10) is better than (5,5), (10,22), and the originally
proposed (14,22)? Then should I make a change to make all 4 costs (SF,
DF, SI, DI) 10?
I think this may require the analysis of the spec's test case. I took a
look at the test results again,
where the scores of SPEC INT 462.libquantum fluctuated greatly, but the
combination of (10,22)
showed an overall upward trend compared to the scores of the other two
combinations.
I don't know if (10,22) this combination happens to have the kind of
test cases in the changelog.
So can we change it together in GCC15?
I'd still want DI % 1000000007 to be reduced as reciprocal sequence (but
not SI % 1000000007) since DI % (smaller const) is quite important for
some workloads like competitive programming. However "adapting with
different modulos" is not possible w/o refactoring generic code so it
must be deferred to at least GCC 15.