summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2016-01-26 10:01:35 +0000
committerTobias Grosser <tobias@grosser.es>2016-01-26 10:01:35 +0000
commitf2cdd144e5c84252e681a3d90b63947a45f488b7 (patch)
tree6d14859c5bda3694d979e8dca6f20ace6cd05d20 /lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h
parent46696ef93c64d60864858d9bd1e76e62d64965ee (diff)
downloadbcm5719-llvm-f2cdd144e5c84252e681a3d90b63947a45f488b7.tar.gz
bcm5719-llvm-f2cdd144e5c84252e681a3d90b63947a45f488b7.zip
BlockGenerators: Replace getNewScalarValue with getNewValue
Both functions implement the same functionality, with the difference that getNewScalarValue assumes that globals and out-of-scop scalars can be directly reused without loading them from their corresponding stack slot. This is correct for sequential code generation, but causes issues with outlining code e.g. for OpenMP code generation. getNewValue handles such cases correctly. Hence, we can replace getNewScalarValue with getNewValue. This is not only more future proof, but also eliminates a bunch of code. The only functionality that was available in getNewScalarValue that is lost is the on-demand creation of scalar values. However, this is not necessary any more as scalars are always loaded at the beginning of each basic block and will consequently always be available when scalar stores are generated. As this was not the case in older versions of Polly, it seems the on-demand loading is just some older code that has not yet been removed. Finally, generateScalarLoads also generated loads for values that are loop invariant, available in GlobalMap and which are preferred over the ones loaded in generateScalarLoads. Hence, we can just skip the code generation of such scalar values, avoiding the generation of dead code. Differential Revision: http://reviews.llvm.org/D16522 llvm-svn: 258799
Diffstat (limited to 'lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud