aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
diff options
context:
space:
mode:
authorJeff Byrnes <jeffrey.byrnes@amd.com>2023-03-28 16:47:58 -0700
committerJeff Byrnes <jeffrey.byrnes@amd.com>2023-04-04 12:01:29 -0700
commit9b79d0b610ccf5557266232d8c7a132ef9ee9365 (patch)
tree4ecbfc06e06c23fbc224566bb2482c5347d60557 /llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
parentd9d840cdaf51a9795930750d1b91d614a3849137 (diff)
downloadllvm-9b79d0b610ccf5557266232d8c7a132ef9ee9365.zip
llvm-9b79d0b610ccf5557266232d8c7a132ef9ee9365.tar.gz
llvm-9b79d0b610ccf5557266232d8c7a132ef9ee9365.tar.bz2
[MergedLoadStoreMotion] Merge stores with conflicting value types
Since memory does not have an intrinsic type, we do not need to require value type matching on stores in order to sink them. To facilitate that, this patch finds stores which are sinkable, but have conflicting types, and bitcasts the ValueOperand so they are easily sinkable into a PHINode. Rather than doing fancy analysis to optimally insert the bitcast, we always insert right before the relevant store in the diamond branch. The assumption is that later passes (e.g. GVN, SimplifyCFG) will clean up bitcasts as needed. Differential Revision: https://reviews.llvm.org/D147348
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions