[PATCH] D93174: [amdgpu] Fix a crash case when `V_CNDMASK` could be simplified.
Michael Liao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 14 06:58:35 PST 2020
hliao added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIFoldOperands.cpp:1260
+ SmallPtrSet<MachineInstr *, 16> Folded;
for (FoldCandidate &Fold : FoldList) {
----------------
arsenm wrote:
> Doesn't this add a second mechanism to avoid the same problem? We already check isUseMIInFoldList to avoid revisiting
That one is used to prevent adding a commuted instr into the candidate list. But the case here is that both operands could be folded. Also, if used here, that check is too expensive? That candidate list will be scanned in square times.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93174/new/
https://reviews.llvm.org/D93174
More information about the llvm-commits
mailing list