[all-commits] [llvm/llvm-project] d28051: [Libomptarget] Replace Value RAII with default value
Joseph Huber via All-commits
all-commits at lists.llvm.org
Mon Feb 7 14:12:34 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d28051c4ab44141d7c52902de500dfe1293d3de2
https://github.com/llvm/llvm-project/commit/d28051c4ab44141d7c52902de500dfe1293d3de2
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-02-07 (Mon, 07 Feb 2022)
Changed paths:
M openmp/libomptarget/DeviceRTL/include/State.h
Log Message:
-----------
[Libomptarget] Replace Value RAII with default value
This patch replaces the ValueRAII pointer with a default 'nullptr'
value. Previously this was initialized as a reference to an existing
variable. The use of this variable caused overhead as the compiler could
not look through the uses and determine that it was unused if 'Active'
was not set. Because of this accesses to the variable would be left in
the runtime once compiled.
Fixes #53641
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D119187
More information about the All-commits
mailing list