[PATCH] D96386: [AMDGPU] Fix promote alloca with double use in a same insn
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 9 17:57:51 PST 2021
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp:603-608
+ auto UI = llvm::find(WorkList, User);
+ if (UI != WorkList.end()) {
+ WorkList.erase(UI);
+ WorkList.push_back(User);
continue;
+ }
----------------
I don't see how this sorts it, the ordering is still determined by the arbitrary ordering in users. Can't the replacement just check all candidate operands
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96386/new/
https://reviews.llvm.org/D96386
More information about the llvm-commits
mailing list