SuccessChanges

Summary

  1. [Asan] Return nullptr for invalid chunks (details)
  2. AMDGPU: Fix inserting waitcnts before kill uses (details)
  3. AMDGPU: Skip all meta instructions in hazard recognizer (details)
  4. AMDGPU: Hoist check for VGPRs (details)
Commit 91c28bbe74f24e0e84edf84daae7659c11e7afd6 by Vitaly Buka
[Asan] Return nullptr for invalid chunks

CHUNK_ALLOCATED. CHUNK_QUARANTINE are only states
which make AsanChunk useful for GetAsanChunk callers.
In either case member of AsanChunk are not useful.

Fix few cases which didn't expect nullptr. Most of the callers are already
expects nullptr.

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D87135
The file was modifiedcompiler-rt/lib/asan/asan_allocator.cpp (diff)
Commit 82cbc9330a4dc61e867864d96b0dbec74abaca89 by Matthew.Arsenault
AMDGPU: Fix inserting waitcnts before kill uses
The file was modifiedllvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp (diff)
The file was addedllvm/test/CodeGen/AMDGPU/waitcnt-meta-instructions.mir
Commit 85490874b23ba1337210dbcb700b258ffb751b78 by Matthew.Arsenault
AMDGPU: Skip all meta instructions in hazard recognizer

This was not adding a necessary nop due to thinking the kill counted.
The file was addedllvm/test/CodeGen/AMDGPU/hazard-recognizer-meta-insts.mir
The file was modifiedllvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp (diff)
Commit e15215e04154e1bc8ea57d46f36b054adf49a3ed by Matthew.Arsenault
AMDGPU: Hoist check for VGPRs
The file was modifiedllvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp (diff)