aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorPetar Avramovic <Petar.Avramovic@amd.com>2023-09-21 14:20:49 +0200
committerPetar Avramovic <Petar.Avramovic@amd.com>2023-10-06 15:00:08 +0200
commit2d7fe90a3eb8b31bc02ee4407b3e74336ac729fc (patch)
tree22cb31adeec29df7f06b6fd11129f6d500f28e98 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentccf68ab4322962981f71114567c19f7d692f9e06 (diff)
downloadllvm-2d7fe90a3eb8b31bc02ee4407b3e74336ac729fc.zip
llvm-2d7fe90a3eb8b31bc02ee4407b3e74336ac729fc.tar.gz
llvm-2d7fe90a3eb8b31bc02ee4407b3e74336ac729fc.tar.bz2
AMDGPU: Add test for temporal divergence introduced by machine-sink
Introduced by 5b657f50b8e8dc5836fb80e566ca7569fd04c26f that moved LICM after AMDGPUCodeGenPrepare. Some instructions are no longer sunk during ir optimizations but in machine-sinking instead. If vgpr instruction used sgpr defined inside the cycle is sunk outside of the cycle we end up with not-handled case of temporal divergence. Add test for theoretical case when SALU instruction (represents uniform value) is sunk outside of the cycle. Add a test when SALU instruction can be sunk if it edits lane mask.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions