forked from OSchip/llvm-project
[OpenMP] Add RTL function to externalization RAII
This patch adds the `__kmpc_get_warp_size` OpenMP RTL function to the externalization RAII struct. This was getting optimized out and then being replaced with an undefined value once added back in, causing bugs for complex reductions. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D114802
This commit is contained in:
parent
914e72d400
commit
7986a5f23e
|
@ -1885,6 +1885,7 @@ private:
|
|||
OMPRTL___kmpc_barrier_simple_generic);
|
||||
ExternalizationRAII ThreadId(OMPInfoCache,
|
||||
OMPRTL___kmpc_get_hardware_thread_id_in_block);
|
||||
ExternalizationRAII WarpSize(OMPInfoCache, OMPRTL___kmpc_get_warp_size);
|
||||
|
||||
registerAAs(IsModulePass);
|
||||
|
||||
|
|
Loading…
Reference in New Issue