[AArch64][MachineCombiner] Use MIMetadata to copy pcsections metadata to reassociated...
authorDavid Green <david.green@arm.com>
Wed, 16 Nov 2022 13:22:48 +0000 (13:22 +0000)
committerDavid Green <david.green@arm.com>
Wed, 16 Nov 2022 13:22:48 +0000 (13:22 +0000)
commit71609871dd733715bfcd48e1f43117191d008cb4
tree0be5ad2f6b13782d31e826a3a17fcf6c641dc06d
parent6bacbea82609a059496618a121b15f86a1f67f60
[AArch64][MachineCombiner] Use MIMetadata to copy pcsections metadata to reassociated instructions.

D134260/D138107 exposed that the MachineCombiner was not copying
pcsections metadata where it should. This patch switches the MIBuild
methods to use MIMetadata that can copy the debug loc and pcsections at
the same time.

Differential Revision: https://reviews.llvm.org/D138112
llvm/lib/CodeGen/TargetInstrInfo.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/arm64-pcsections.ll