[Bug target/67272] [HSA] register allocator expects that every register must be assigned
matz at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 25 16:03:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67272
--- Comment #5 from Michael Matz <matz at gcc dot gnu.org> ---
Author: matz
Date: Tue Aug 25 16:02:38 2015
New Revision: 227176
URL: https://gcc.gnu.org/viewcvs?rev=227176&root=gcc&view=rev
Log:
PR target/67272
PR target/67296
* hsa.h (hsa_function_representation): Remove prologue member.
* hsa-dump.c (dump_hsa_cfun): Iterator over all BBs.
* hsa-gen.c (hsa_function_representation): Don't init prologue,
start with zero bbs.
(hsa_function_representation::get_shadow_reg): Use entry block,
not prologue member.
(hsa_init_data_for_cfun): Create hsa_bb for entry/exit blocks.
(hsa_deinit_data_for_cfun): Deallocate also for entry/exit blocks.
(gen_hsa_insns_for_kernel_call): Don't use UINT64_MAX, but
the built-in max value of the type.
(gen_function_def_parameters): Don't use prologue member, but
the hsa bb for entry bb.
(wrap_all_hsa_calls): Iterate over all BBs.
* hsa-regalloc.c (naive_process_phi): Revert 2015-08-19 change.
(naive_outof_ssa): Iterate over all BBs.
(dump_hsa_cfun_regalloc): Ditto.
(linear_scan_regalloc): Ditto.
(regalloc): Ditto.
Modified:
branches/hsa/gcc/ChangeLog.hsa
branches/hsa/gcc/hsa-dump.c
branches/hsa/gcc/hsa-gen.c
branches/hsa/gcc/hsa-regalloc.c
branches/hsa/gcc/hsa.h
More information about the Gcc-bugs
mailing list