[PATCH] D76881: [AMDGPU] Skip CFIInstructions in SIInsertWaitcnts

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 26 14:45:07 PDT 2020


arsenm added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp:1644
+    MachineBasicBlock::iterator I = EntryBB.begin();
+    for (MachineBasicBlock::iterator E = EntryBB.end();
+         I != E && (I->isPHI() || I->isCFIInstruction()); ++I)
----------------
scott.linder wrote:
> arsenm wrote:
> > Why just CFI? Why not isMetaInstruction?
> Seems reasonable to me. Is there a reason why isMetaInstruction doesn't include PHIs?
It's a real instruction that will emit a copy


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76881/new/

https://reviews.llvm.org/D76881





More information about the llvm-commits mailing list