[llvm] [llvm][opt][Transforms] Preserve AMDGPU atomic metadata (PR #140314)

Alex Voicu via llvm-commits llvm-commits at lists.llvm.org
Mon May 19 16:22:51 PDT 2025


================
@@ -0,0 +1,42 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+;; Test to ensure that AMDGPU atomic related metadata is not dropped when
+;; instructions are sunk. Currently the metadata from the first instruction
+;; is kept, which prevents full loss of optimisation information.
+
+; RUN: opt < %s -passes=simplifycfg -passes=simplifycfg -sink-common-insts -S | FileCheck %s
----------------
AlexVlx wrote:

Typo, apologies.

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


More information about the llvm-commits mailing list