[PATCH] D51015: [MemorySSA] Make the Updater movable.
Alina Sbirlea via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 20 16:52:19 PDT 2018
asbirlea updated this revision to Diff 161623.
asbirlea added a comment.
Nope, don't need that.
Repository:
rL LLVM
https://reviews.llvm.org/D51015
Files:
include/llvm/Analysis/MemorySSAUpdater.h
Index: include/llvm/Analysis/MemorySSAUpdater.h
===================================================================
--- include/llvm/Analysis/MemorySSAUpdater.h
+++ include/llvm/Analysis/MemorySSAUpdater.h
@@ -70,6 +70,11 @@
public:
MemorySSAUpdater(MemorySSA *MSSA) : MSSA(MSSA) {}
+ MemorySSAUpdater(MemorySSAUpdater &&MSSAU) : MSSA(MSSAU.MSSA) {}
+ MemorySSAUpdater& operator=(MemorySSAUpdater&& MSSAU) {
+ MSSA = MSSAU.MSSA;
+ return *this;
+ }
/// Insert a definition into the MemorySSA IR. RenameUses will rename any use
/// below the new def block (and any inserted phis). RenameUses should be set
/// to true if the definition may cause new aliases for loads below it. This
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51015.161623.patch
Type: text/x-patch
Size: 709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180820/fd961b5b/attachment.bin>
More information about the llvm-commits
mailing list