Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR for llvm/llvm-project#54208 #119

Open
wants to merge 1 commit into
base: release/14.x
Choose a base branch
from
Open

PR for llvm/llvm-project#54208 #119

wants to merge 1 commit into from

Commits on Mar 4, 2022

  1. [Libomptarget] Work around bug in initialization of libomptarget

    Libomptarget uses some shared variables to track certain internal stated
    in the runtime. This causes problems when we have code that contains no
    OpenMP kernels. These variables are normally initialized upon kernel
    entry, but if there are no kernels we will see no initialization.
    Currently we load the runtime into each source file when not running in
    LTO mode, so these variables will be erroneously considered undefined or
    dead and removed, causing miscompiles. This patch temporarily works
    around the most obvious case, but others still exhibit this problem. We
    will need to fix this more soundly later.
    
    Fixes llvm#54208.
    
    Reviewed By: jdoerfert
    
    Differential Revision: https://reviews.llvm.org/D121007
    
    (cherry picked from commit e2dcc22)
    jhuber6 authored and llvmbot committed Mar 4, 2022
    Configuration menu
    Copy the full SHA
    5dcf8b1 View commit details
    Browse the repository at this point in the history