[PATCH] D124031: llvm-reduce: Fix incorrect cloning of MachineMemOperands

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 19 12:03:46 PDT 2022


arsenm created this revision.
arsenm added reviewers: aeubanks, MatzeB, markus, qcolombet, reames.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

There were two problems with directly copying the MMOs from the old
function. The MMOs are owned by the function's Allocator, so need to
be reallocated anyways (surprisingly I didn't notice breakage on
this). Second, the PseudoSourceValues are also allocated per function
and need to be reallocated.


https://reviews.llvm.org/D124031

Files:
  llvm/test/tools/llvm-reduce/mir/preserve-mem-operands.mir
  llvm/tools/llvm-reduce/ReducerWorkItem.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124031.423699.patch
Type: text/x-patch
Size: 7192 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220419/9516ed75/attachment.bin>


More information about the llvm-commits mailing list