[all-commits] [llvm/llvm-project] 434992: [OpenMP][FIX] Do not overalign mapped structures

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Fri Feb 3 05:57:33 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 434992c96ed1c41316e029877bdb516fddeddb16
      https://github.com/llvm/llvm-project/commit/434992c96ed1c41316e029877bdb516fddeddb16
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-02-03 (Fri, 03 Feb 2023)

  Changed paths:
    M openmp/libomptarget/src/omptarget.cpp
    A openmp/libomptarget/test/mapping/low_alignment.c

  Log Message:
  -----------
  [OpenMP][FIX] Do not overalign mapped structures

While we potentially need to align partially mapped structs more than
the first member, we do not need to align past the struct itself. This
prevents us from moving the base pointer past the struct beginning too.

See https://reviews.llvm.org/D142508 for a discussion.

Reviewed By: pavelkopyl, grokos, jhuber6

Differential Revision: https://reviews.llvm.org/D142586




More information about the All-commits mailing list