diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2016-05-26 01:19:14 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2016-05-26 01:19:14 +0000 |
| commit | 7c10dd1411e75c87f9de380642362244b144a8a4 (patch) | |
| tree | 7d574ecd470fb03c4b5ecbe35e68412c802e6e3f | |
| parent | be84d2beeecd573f32b6ece437c076463b220661 (diff) | |
| download | bcm5719-llvm-7c10dd1411e75c87f9de380642362244b144a8a4.tar.gz bcm5719-llvm-7c10dd1411e75c87f9de380642362244b144a8a4.zip | |
MemorySSA: Fix example in header comment.
This fixes the example so that it matches the pass's behavior. I was a
little confused by the example until I tried running it and realized that
there was a mistake.
Differential Revision: http://reviews.llvm.org/D20657
llvm-svn: 270811
| -rw-r--r-- | llvm/include/llvm/Transforms/Utils/MemorySSA.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Transforms/Utils/MemorySSA.h b/llvm/include/llvm/Transforms/Utils/MemorySSA.h index 2de3192aefa..b6de7a98028 100644 --- a/llvm/include/llvm/Transforms/Utils/MemorySSA.h +++ b/llvm/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). |

