[llvm] [AMDGPU][SIInsertWaitcnts] Do not add s_waitcnt when the counters are known to be 0 already (PR #65735)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 2 09:41:58 PDT 2023


Juan Manuel MARTINEZ =?utf-8?q?CAAMAÑO?= <juamarti at amd.com>,
Juan Manuel MARTINEZ =?utf-8?q?CAAMAÑO?= <juamarti at amd.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/65735 at github.com>


================
@@ -34,6 +34,11 @@ static cl::opt<bool> AmdgcnSkipCacheInvalidations(
     "amdgcn-skip-cache-invalidations", cl::init(false), cl::Hidden,
     cl::desc("Use this to skip inserting cache invalidating instructions."));
 
+static cl::opt<bool> AmdgcnDisableSoftWaitcnt(
----------------
jayfoad wrote:

Instead of this I suggest you change `memory-legalizer-atomic-fence.ll` to use `-stop-after=si-memory-legalizer` (and generate the checks in it with `utils/update_mir_test_checks.py`).

https://github.com/llvm/llvm-project/pull/65735


More information about the llvm-commits mailing list