[PATCH] D101177: [AMDGPU] Skip invariant loads when avoiding WAR conflicts

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 11 05:02:14 PDT 2021


foad accepted this revision.
foad added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp:1529
+        if (!Memop->isInvariant()) {
+          const Value *Ptr = Memop->getValue();
+          SLoadAddresses.insert(std::make_pair(Ptr, Inst.getParent()));
----------------
Might be worth asserting that Ptr is not null here, since that's what caused the problem in the first place?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101177



More information about the llvm-commits mailing list