Skip to content

Commit f5b8e2b

Browse files
Pierre-vhchencha3
authored andcommitted
[AMDGPU][PromoteAlloca] Drop bitcast handling (llvm#85747)
This is no longer needed with opaque pointers.
1 parent 8a361b9 commit f5b8e2b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -724,14 +724,6 @@ bool AMDGPUPromoteAllocaImpl::tryPromoteAllocaToVector(AllocaInst &Alloca) {
724724
continue;
725725
}
726726

727-
if (isa<BitCastInst>(Inst)) {
728-
// Look through bitcasts.
729-
for (Use &U : Inst->uses())
730-
Uses.push_back(&U);
731-
UsersToRemove.push_back(Inst);
732-
continue;
733-
}
734-
735727
if (auto *GEP = dyn_cast<GetElementPtrInst>(Inst)) {
736728
// If we can't compute a vector index from this GEP, then we can't
737729
// promote this alloca to vector.

0 commit comments

Comments
 (0)