aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authoralex-t <alexander.timofeev@amd.com>2020-11-13 19:07:29 +0300
committeralex-t <alexander.timofeev@amd.com>2020-12-28 17:14:02 +0300
commit644da789e364b338227a13b5cc11dd03c8ae5ba8 (patch)
tree4bfb02a2eae43c595f3ad70d1faa7006b2705274 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parente673d40199477f48b78ed9ad790ce7356474f907 (diff)
downloadllvm-644da789e364b338227a13b5cc11dd03c8ae5ba8.zip
llvm-644da789e364b338227a13b5cc11dd03c8ae5ba8.tar.gz
llvm-644da789e364b338227a13b5cc11dd03c8ae5ba8.tar.bz2
[AMDGPU] Split edge to make si_if dominate end_cf
Basic block containing "if" not necessarily dominates block that is the "false" target for the if. That "false" target block may have another predecessor besides the "if" block. IR value corresponding to the Exec mask is generated by the si_if intrinsic and then used by the end_cf intrinsic. In this case IR verifier complains that 'Def does not dominate all uses'. This change split the edge between the "if" block and "false" target block to make it dominated by the "if" block. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D91435
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions