diff options
author | Juzhe-Zhong <juzhe.zhong@rivai.ai> | 2024-01-10 23:45:21 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2024-01-11 07:24:20 +0800 |
commit | 3b8ef3f25ed68790f77eea8ea445b7c9144c8ca6 (patch) | |
tree | e6902199b08f826aa97f74f8137ae4b3a4fe2c23 /gcc/c | |
parent | 2aa83f0ad8a613fc46bf13cdd3403445d5c85b69 (diff) | |
download | gcc-3b8ef3f25ed68790f77eea8ea445b7c9144c8ca6.zip gcc-3b8ef3f25ed68790f77eea8ea445b7c9144c8ca6.tar.gz gcc-3b8ef3f25ed68790f77eea8ea445b7c9144c8ca6.tar.bz2 |
RISC-V: Switch RVV cost model.
This patch is preparing patch for the following cost model tweak.
Since we don't have vector cost model in default tune info (rocket),
we set the cost model default as generic cost model by default.
The reason we want to switch to generic vector cost model is the default
cost model generates inferior codegen for various benchmarks.
For example, PR113247, we have performance bug that we end up having over 70%
performance drop of SHA256. Currently, no matter how we adapt cost model,
we are not able to fix the performance bug since we always use default cost model by default.
Also, tweak the generic cost model back to default cost model since we have some FAILs in
current tests.
After this patch, we (me an Robin) can work on cost model tunning together to improve performane
in various benchmarks.
Tested on both RV32 and RV64, ok for trunk ?
gcc/ChangeLog:
* config/riscv/riscv.cc (get_common_costs): Switch RVV cost model.
(get_vector_costs): Ditto.
(riscv_builtin_vectorization_cost): Ditto.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions