diff options
author | Martin Liska <mliska@suse.cz> | 2016-03-31 19:10:48 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-03-31 17:10:48 +0000 |
commit | 65e214672611ba3350918855de84d81fcbfa14d1 (patch) | |
tree | c1bca0edd58f080640ccf63dd1092713120eb8b1 /gcc/hsa-regalloc.c | |
parent | 320c1a36793e0f408924b38bc006e6b791dceff7 (diff) | |
download | gcc-65e214672611ba3350918855de84d81fcbfa14d1.zip gcc-65e214672611ba3350918855de84d81fcbfa14d1.tar.gz gcc-65e214672611ba3350918855de84d81fcbfa14d1.tar.bz2 |
HSA: handle alignment of string builtins (PR hsa/70391)
PR hsa/70391
* hsa-gen.c (hsa_function_representation::update_dominance): New
function.
(convert_addr_to_flat_segment): Likewise.
(gen_hsa_memory_set): New alignment argument.
(gen_hsa_ctor_assignment): Likewise.
(gen_hsa_insns_for_single_assignment): Provide alignment
to gen_hsa_ctor_assignment.
(gen_hsa_insns_for_direct_call): Add new argument.
(expand_lhs_of_string_op): New function.
(expand_string_operation_builtin): Likewise.
(expand_memory_copy): New function.
(expand_memory_set): New function.
(gen_hsa_insns_for_call): Use HOST_WIDE_INT.
(convert_switch_statements): Change signature.
(generate_hsa): Use a return value of the function.
(pass_gen_hsail::execute): Do not call
convert_switch_statements here.
* hsa-regalloc.c (hsa_regalloc): Call update_dominance.
* hsa.h (hsa_function_representation::m_modified_cfg):
New flag.
(hsa_function_representation::update_dominance): New function.
From-SVN: r234644
Diffstat (limited to 'gcc/hsa-regalloc.c')
-rw-r--r-- | gcc/hsa-regalloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/hsa-regalloc.c b/gcc/hsa-regalloc.c index 16cde8b..50bf511 100644 --- a/gcc/hsa-regalloc.c +++ b/gcc/hsa-regalloc.c @@ -700,6 +700,7 @@ regalloc (void) void hsa_regalloc (void) { + hsa_cfun->update_dominance (); naive_outof_ssa (); if (dump_file && (dump_flags & TDF_DETAILS)) |