summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/EarlyCSE.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-03-15 18:10:54 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-03-15 18:10:54 +0000
commitc99042ba973be37d9a5bcbb258f83251bf36b673 (patch)
tree1a044cc4c4e89e1b16fe04cd607ad1c76ccb8578 /llvm/lib/Transforms/Scalar/EarlyCSE.cpp
parent3dbc362fe295d9c5855223abbd4c7f4e125be614 (diff)
downloadbcm5719-llvm-c99042ba973be37d9a5bcbb258f83251bf36b673.tar.gz
bcm5719-llvm-c99042ba973be37d9a5bcbb258f83251bf36b673.zip
[OPENMP, NVPTX] Improve globalization of the variables captured by value.
If the variable is captured by value and the corresponding parameter in the outlined function escapes its declaration context, this parameter must be globalized. To globalize it we need to get the address of the original parameter, load the value, store it to the global address and use this global address instead of the original. Patch improves globalization for parallel|teams regions + functions in declare target regions. llvm-svn: 327654
Diffstat (limited to 'llvm/lib/Transforms/Scalar/EarlyCSE.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud