[PATCH] D20657: MemorySSA: Fix example in header comment.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Wed May 25 18:25:42 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL270811: MemorySSA: Fix example in header comment. (authored by pcc).
Changed prior to commit:
http://reviews.llvm.org/D20657?vs=58551&id=58552#toc
Repository:
rL LLVM
http://reviews.llvm.org/D20657
Files:
llvm/trunk/include/llvm/Transforms/Utils/MemorySSA.h
Index: llvm/trunk/include/llvm/Transforms/Utils/MemorySSA.h
===================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/MemorySSA.h
+++ llvm/trunk/include/llvm/Transforms/Utils/MemorySSA.h
@@ -45,9 +45,9 @@
// store i32 5, i32* %2, align 4
// ; 4 = MemoryDef(3)
// store i32 7, i32* %4, align 4
-// ; MemoryUse(4)
-// %7 = load i32* %2, align 4
// ; MemoryUse(3)
+// %7 = load i32* %2, align 4
+// ; MemoryUse(4)
// %8 = load i32* %4, align 4
// %add = add nsw i32 %7, %8
// ret i32 %add
@@ -59,7 +59,7 @@
//
// Each def also has a list of users associated with it, so you can walk from
// both def to users, and users to defs. Note that we disambiguate MemoryUses,
-// but not the RHS of MemoryDefs. You can see this above at %8, which would
+// but not the RHS of MemoryDefs. You can see this above at %7, which would
// otherwise be a MemoryUse(4). Being disambiguated means that for a given
// store, all the MemoryUses on its use lists are may-aliases of that store (but
// the MemoryDefs on its use list may not be).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20657.58552.patch
Type: text/x-patch
Size: 1111 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160526/447801c3/attachment.bin>
More information about the llvm-commits
mailing list