[PATCH] D109870: [AMDGPU] Enable the pass "amdgpu-replace-lds-use-with-pointer"
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 16 19:56:52 PDT 2021
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUReplaceLDSUseWithPointer.cpp:199
+ auto *EI = &(*(EBB.getFirstInsertionPt()));
+ BasicBlock::reverse_iterator RIT(EBB.getTerminator());
+ while (!isa<AllocaInst>(*RIT) && (&*RIT != EI))
----------------
Why is this using a reverse iterator? Why not just forward iterate since that's where the allocas are?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109870/new/
https://reviews.llvm.org/D109870
More information about the llvm-commits
mailing list