[PATCH] D156679: [WIP][AMDGPU][SIInsertWaitcnts] Do not add s_waitcnt when the counters are known to be 0 already
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 07:52:02 PDT 2023
foad added a comment.
> I'm currently trying to find a way to distinguish between waitcnt instructions coming from the memory-legalizer and the rest.
> But I'm far less familiar with the MachineInstruction API than with LLVM-IR.
> Is there something like Metadata or Flags that we can turn on/off to indiciate that an instruction is coming from the legalizer?
I think you should probably use different opcodes for this, e.g. invent something like S_SOFT_WAITCNT or S_WAITCNT_PSEUDO for the ones inserted by SIMemoryLegalizer.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156679/new/
https://reviews.llvm.org/D156679
More information about the llvm-commits
mailing list