summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGOpenCLRuntime.cpp
diff options
context:
space:
mode:
authorGil Rapaport <gil.rapaport@intel.com>2018-11-08 09:01:19 +0000
committerGil Rapaport <gil.rapaport@intel.com>2018-11-08 09:01:19 +0000
commit7b88bab386dba08796a86862a8c943f18c72fa49 (patch)
treef676aa9a6717b6676169ea2ee992d6d59baea2b5 /clang/lib/CodeGen/CGOpenCLRuntime.cpp
parent65cb9d79a25ce3cb7572484a1dd1d182efe8f82e (diff)
downloadbcm5719-llvm-7b88bab386dba08796a86862a8c943f18c72fa49.tar.gz
bcm5719-llvm-7b88bab386dba08796a86862a8c943f18c72fa49.zip
[LSR] Combine unfolded offset into invariant register
LSR reassociates constants as unfolded offsets when the constants fit as immediate add operands, which currently prevents such constants from being combined later with loop invariant registers. This patch modifies GenerateCombinations() to generate a second formula which includes the unfolded offset in the combined loop-invariant register. This commit fixes a bug in the original patch (committed at r345114, reverted at r345123). Differential Revision: https://reviews.llvm.org/D51861 llvm-svn: 346390
Diffstat (limited to 'clang/lib/CodeGen/CGOpenCLRuntime.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud