[llvm] [AMDGPU][PromoteAlloca] Drop bitcast handling (PR #85747)
Pierre van Houtryve via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 00:47:27 PDT 2024
https://github.com/Pierre-vh created https://github.com/llvm/llvm-project/pull/85747
This is no longer needed with opaque pointers.
>From ae55e0d0b915f11d787a298fc11352c9bd97aa29 Mon Sep 17 00:00:00 2001
From: pvanhout <pierre.vanhoutryve at amd.com>
Date: Tue, 19 Mar 2024 08:46:55 +0100
Subject: [PATCH] [AMDGPU][PromoteAlloca] Drop bitcast handling
This is no longer needed with opaque pointers.
---
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp | 8 --------
1 file changed, 8 deletions(-)
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