[amdgpu][nfc] Remove dead code associated with LDS lowering
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Wed, 5 Apr 2023 21:24:21 +0000 (22:24 +0100)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Wed, 5 Apr 2023 21:24:22 +0000 (22:24 +0100)
commit3c76e5f0c868fc027c5d057b774e327eef3e40c7
treecc31ebe56e6860fe3aa0c565aa8eed8c5ddffc31
parent302578d9016299b5c1c22d580de4ccbc68f7a120
[amdgpu][nfc] Remove dead code associated with LDS lowering

Pass disabled since approximately D104962 for miscompiling openmp

The functions under ReplaceConstant miscompile phis as noted in D112717 and
have no users in tree other than the disabled pass. It seems likely it has no
users out of tree.

Deletes the test cases associated with the disabled pass as well.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D147586
25 files changed:
llvm/include/llvm/IR/ReplaceConstant.h
llvm/lib/IR/ReplaceConstant.cpp
llvm/lib/Target/AMDGPU/AMDGPU.h
llvm/lib/Target/AMDGPU/AMDGPUReplaceLDSUseWithPointer.cpp [deleted file]
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
llvm/lib/Target/AMDGPU/CMakeLists.txt
llvm/lib/Target/AMDGPU/Utils/AMDGPUMemoryUtils.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUMemoryUtils.h
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-call-diamond-shape.ll [deleted file]
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-call-selected_functions.ll [deleted file]
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-call-to-declare-only-func.ll [deleted file]
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-global-scope-use.ll [deleted file]
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-inline-asm-call.ll [deleted file]
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-kernel-only-used-lds.ll [deleted file]
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-not-reachable-lds.ll [deleted file]
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-small-lds.ll [deleted file]
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-indirect-call-diamond-shape.ll [deleted file]
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-indirect-call-selected_functions.ll [deleted file]
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-indirect-call-signature-match.ll [deleted file]
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-multiple-lds.ll [deleted file]
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-same-lds.ll [deleted file]
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-within-const-expr1.ll [deleted file]
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-within-const-expr2.ll [deleted file]
llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-within-phi-inst.ll [deleted file]
llvm/utils/gn/secondary/llvm/lib/Target/AMDGPU/BUILD.gn