Skip to content

Commit

Permalink
[AMDGPU][PromoteAlloca] Drop bitcast handling (#85747)
Browse files Browse the repository at this point in the history
This is no longer needed with opaque pointers.
  • Loading branch information
Pierre-vh committed Mar 19, 2024
1 parent db60491 commit 5e379b6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5e379b6

Please sign in to comment.