[AtomicExpandPass] Always copy pcsections Metadata to expanded atomics
authorMarco Elver <elver@google.com>
Tue, 6 Sep 2022 13:49:18 +0000 (15:49 +0200)
committerMarco Elver <elver@google.com>
Wed, 7 Sep 2022 09:36:01 +0000 (11:36 +0200)
commitf0d6709e4a587449eae3e6277e64e6550840b468
tree954dbd858493539f94769b90889459176aa3b368
parent0ba8886af56198083b8cfd580e6de60444a2038d
[AtomicExpandPass] Always copy pcsections Metadata to expanded atomics

When expanding IR atomics to target-specific atomics, copy all
!pcsections Metadata to expanded atomics automatically.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D130885
llvm/lib/CodeGen/AtomicExpandPass.cpp
llvm/test/Transforms/AtomicExpand/AArch64/pcsections.ll [new file with mode: 0644]