[llvm] 5e379b6 - [AMDGPU][PromoteAlloca] Drop bitcast handling (#85747)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 02:36:16 PDT 2024
Author: Pierre van Houtryve
Date: 2024-03-19T10:36:12+01:00
New Revision: 5e379b63fcd942017593d278c8c2313744413904
URL: https://github.com/llvm/llvm-project/commit/5e379b63fcd942017593d278c8c2313744413904
DIFF: https://github.com/llvm/llvm-project/commit/5e379b63fcd942017593d278c8c2313744413904.diff
LOG: [AMDGPU][PromoteAlloca] Drop bitcast handling (#85747)
This is no longer needed with opaque pointers.
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp b/llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
index b1b15e9915aea3..e86132769f5788 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
@@ -724,14 +724,6 @@ bool AMDGPUPromoteAllocaImpl::tryPromoteAllocaToVector(AllocaInst &Alloca) {
continue;
}
- if (isa<BitCastInst>(Inst)) {
- // Look through bitcasts.
- for (Use &U : Inst->uses())
- Uses.push_back(&U);
- UsersToRemove.push_back(Inst);
- continue;
- }
-
if (auto *GEP = dyn_cast<GetElementPtrInst>(Inst)) {
// If we can't compute a vector index from this GEP, then we can't
// promote this alloca to vector.
More information about the llvm-commits
mailing list