This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/2] HSA: support alignment for hsa_symbols (PR hsa/70391)


Hello.

Following small series implements missing support for alignment
of HSA symbols. So far we were very optimistic about the alignment.
The first patch adds tracking of alignment of HSA symbols and
takes minimum every time we do generation of memory copy instruction.
The second part handles string operations (memcpy, memset, ...), where
we add a CFG that distinguishes between aligned and not aligned
operands.

Patch can bootstrap on x86_64-linux-gnu w/o any regression.

Thanks,
Martin

marxin (2):
  HSA: support alignment for hsa_symbols (PR hsa/70391)
  HSA: handle alignment of string builtins (PR hsa/70391)

 gcc/hsa-brig.c     |   5 +-
 gcc/hsa-dump.c     |  13 +-
 gcc/hsa-gen.c      | 456 ++++++++++++++++++++++++++++++++++++++---------------
 gcc/hsa-regalloc.c |   1 +
 gcc/hsa.c          |  20 +++
 gcc/hsa.h          |  17 +-
 6 files changed, 372 insertions(+), 140 deletions(-)

-- 
2.7.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]