[llvm] [RFC] Memory Model Relaxation Annotations (PR #78569)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 16 01:41:16 PDT 2024
================
@@ -132,7 +132,8 @@ struct ReplacementIRBuilder : IRBuilder<InstSimplifyFolder> {
explicit ReplacementIRBuilder(Instruction *I, const DataLayout &DL)
: IRBuilder(I->getContext(), DL) {
SetInsertPoint(I);
- this->CollectMetadataToCopy(I, {LLVMContext::MD_pcsections});
+ this->CollectMetadataToCopy(
+ I, {LLVMContext::MD_pcsections, LLVMContext::MD_mmra});
----------------
nikic wrote:
Doing it in a custom inserter sounds good to me.
https://github.com/llvm/llvm-project/pull/78569
More information about the llvm-commits
mailing list