[AMDGPU] Remove assert
authorPiotr Sobczak <Piotr.Sobczak@amd.com>
Wed, 12 May 2021 12:52:02 +0000 (14:52 +0200)
committerPiotr Sobczak <Piotr.Sobczak@amd.com>
Wed, 12 May 2021 12:52:37 +0000 (14:52 +0200)
Remove assert introduced in D101177, following post-commit feedback.

llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

index bfac7df..7d6f799 100644 (file)
@@ -1525,7 +1525,6 @@ bool SIInsertWaitcnts::insertWaitcntInBlock(MachineFunction &MF,
         // there cannot be a vector store to the same memory location.
         if (!Memop->isInvariant()) {
           const Value *Ptr = Memop->getValue();
-          assert(Ptr);
           SLoadAddresses.insert(std::make_pair(Ptr, Inst.getParent()));
         }
       }