[llvm] [AMDGPU][PromoteAlloca] Drop bitcast handling (PR #85747)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 00:47:56 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Pierre van Houtryve (Pierre-vh)
<details>
<summary>Changes</summary>
This is no longer needed with opaque pointers.
---
Full diff: https://github.com/llvm/llvm-project/pull/85747.diff
1 Files Affected:
- (modified) llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp (-8)
``````````diff
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.
``````````
</details>
https://github.com/llvm/llvm-project/pull/85747
More information about the llvm-commits
mailing list