]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Fix ICE in JSON tuning schema with dispatch scheduling and update schema...
authorSoumya AR <soumyaa@nvidia.com>
Tue, 10 Feb 2026 08:58:47 +0000 (08:58 +0000)
committerSoumya AR <soumyaa@nvidia.com>
Thu, 12 Feb 2026 06:09:34 +0000 (11:39 +0530)
commitca3cdf95748238afd30d3c9e4d140f5b12a06bcd
treee5487638ecb22ef965690bd062b0b1f6047134cb
parentae37ade22ecf4e4ca2911d6628f8bec20c3d6422
aarch64: Fix ICE in JSON tuning schema with dispatch scheduling and update schema for SVE costs.

This patch fixes the following bugs:

1) For SVE vector costs [sve_vec_cost], the JSON schema did not list the
inherited members from the base structure, only the SVE specific ones. Updated
the schema to include all the members and regenerated the printing/parsing
routines.

2) After dispatch scheduling, if someone uses -fdump-tuning-model with
mcpu=olympus, it will have the flag for dispatch scheduling enabled. Then, if
someone uses that dump against any -mcpu other than Olympus for tuning, it will
ICE as we enable dispatch scheduling but don't provide the data. Updated this
to clear the flag if dispatch_constraints is NULL.

Signed-off-by: Soumya AR <soumyaa@nvidia.com>
gcc/ChangeLog:

* config/aarch64/aarch64-json-schema.h: Include inherited members for
SVE vector costs.
* config/aarch64/aarch64-json-tunings-parser-generated.inc
(parse_vec_costs_sve): Regenerate.
* config/aarch64/aarch64-json-tunings-parser.cc
(aarch64_load_tuning_params_from_json_string): Clear dispatch scheduling
flag if dispatch_constraints is NULL.
* config/aarch64/aarch64-json-tunings-printer-generated.inc
(serialize_vec_costs_sve): Regenerate.
gcc/config/aarch64/aarch64-json-schema.h
gcc/config/aarch64/aarch64-json-tunings-parser-generated.inc
gcc/config/aarch64/aarch64-json-tunings-parser.cc
gcc/config/aarch64/aarch64-json-tunings-printer-generated.inc