[llvm] r277652 - [MSSA] Fix a bug in MemorySSA's move ctor.
George Burgess IV via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 3 14:07:52 PDT 2016
Author: gbiv
Date: Wed Aug 3 16:07:52 2016
New Revision: 277652
URL: http://llvm.org/viewvc/llvm-project?rev=277652&view=rev
Log:
[MSSA] Fix a bug in MemorySSA's move ctor.
Not a correctness issue, but it would be nice if we didn't have to
recompute our block numbering (worst-case) every time we move MSSA.
Modified:
llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp
Modified: llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp?rev=277652&r1=277651&r2=277652&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp Wed Aug 3 16:07:52 2016
@@ -1236,6 +1236,8 @@ MemorySSA::MemorySSA(MemorySSA &&MSSA)
ValueToMemoryAccess(std::move(MSSA.ValueToMemoryAccess)),
PerBlockAccesses(std::move(MSSA.PerBlockAccesses)),
LiveOnEntryDef(std::move(MSSA.LiveOnEntryDef)),
+ BlockNumberingValid(std::move(MSSA.BlockNumberingValid)),
+ BlockNumbering(std::move(MSSA.BlockNumbering)),
Walker(std::move(MSSA.Walker)), NextID(MSSA.NextID) {
// Update the Walker MSSA pointer so it doesn't point to the moved-from MSSA
// object any more.
More information about the llvm-commits
mailing list