summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-05-03 14:40:10 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-05-03 14:40:10 +0000
commit0446fbe45ecf417cc05cddc198a3503ea8d2bc81 (patch)
tree67d58564e3c6f02039d30c6fe82a776d90ffb0a3 /llvm/lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
parentbc876df3a5f0f25b7c43a90e4c35f553ca5362df (diff)
downloadbcm5719-llvm-0446fbe45ecf417cc05cddc198a3503ea8d2bc81.tar.gz
bcm5719-llvm-0446fbe45ecf417cc05cddc198a3503ea8d2bc81.zip
AMDGPU: Replace shrunk instruction with dummy implicit_def
This was broken if the original operand was killed. The kill flag would appear on both instructions, and fail the verifier. Keep the kill flag, but remove the operands from the old instruction. This has an added benefit of really reducing the use count for future folds. Ideally the pass would be structured more like what PeepholeOptimizer does to avoid this hack to avoid breaking instruction iterators. llvm-svn: 359891
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud