diff options
author | Yaxun Liu <Yaxun.Liu@amd.com> | 2017-06-09 20:46:29 +0000 |
---|---|---|
committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2017-06-09 20:46:29 +0000 |
commit | 6455b0dbf3131a5f1df3fb9f2207ae728f0ef937 (patch) | |
tree | 9ff1d28757486622308c55efc167ae56725d0fbd /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | bd336e44d8ab60e0c1d7ef7703ba0ff5c51e43b5 (diff) | |
download | llvm-6455b0dbf3131a5f1df3fb9f2207ae728f0ef937.zip llvm-6455b0dbf3131a5f1df3fb9f2207ae728f0ef937.tar.gz llvm-6455b0dbf3131a5f1df3fb9f2207ae728f0ef937.tar.bz2 |
[SROA] Fix APInt size when load/store have different address space
Currently there is a bug in SROA::presplitLoadsAndStores which causes assertion in
GEPOperator::accumulateConstantOffset.
Basically it does not consider the situation that the pointer operand of load or store
may be in a non-zero address space and its size may be different from the size of
a pointer in address space 0.
This patch fixes assertion when compiling Blender Cycles kernels for amdgpu backend.
Diffferential Revision: https://reviews.llvm.org/D33298
llvm-svn: 305107
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions