aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorPiotr Sobczak <Piotr.Sobczak@amd.com>2020-09-17 14:21:23 +0200
committerPiotr Sobczak <Piotr.Sobczak@amd.com>2020-09-23 09:13:43 +0200
commit8d7fd73c3a8ce069cfe48dfcf949b4a59c05c673 (patch)
treeed2a40abbc617db8125749bd1c2acc1d7557d003 /clang/lib/CodeGen/CodeGenModule.cpp
parentb62f9f4407a5ed6e5722e177e906efcebebce9eb (diff)
downloadllvm-8d7fd73c3a8ce069cfe48dfcf949b4a59c05c673.zip
llvm-8d7fd73c3a8ce069cfe48dfcf949b4a59c05c673.tar.gz
llvm-8d7fd73c3a8ce069cfe48dfcf949b4a59c05c673.tar.bz2
[AMDGPU] Fix merging m0 inits
Fix incorrect merges of m0 inits in loops. It was assumed that if a clobbering instruction appears in the same block as an init and the clobbering instruction does not dominate the init then it does not interfere with init. This does not work in the presence of loops, where in this scenario, the clobbering instruction does interfere with the init in another iteration. To fix this, do not check for block equality and defer the decision to the predecessor check. Differential Revision: https://reviews.llvm.org/D87882
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions