diff options
author | Alina Sbirlea <asbirlea@google.com> | 2018-08-21 23:13:02 +0000 |
---|---|---|
committer | Alina Sbirlea <asbirlea@google.com> | 2018-08-21 23:13:02 +0000 |
commit | 5f0976a6d1043fa47debf232772d2fa1714a0a56 (patch) | |
tree | afddd6ac4c138a0c10a5dab0e7face34683ea495 /llvm | |
parent | 59c289fda20e345b5eda1652488bf729cfb7526d (diff) | |
download | bcm5719-llvm-5f0976a6d1043fa47debf232772d2fa1714a0a56.tar.gz bcm5719-llvm-5f0976a6d1043fa47debf232772d2fa1714a0a56.zip |
[MemorySSA] Update comment for move APIs to clarify behavior (NFC).
llvm-svn: 340362
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Analysis/MemorySSAUpdater.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/llvm/include/llvm/Analysis/MemorySSAUpdater.h b/llvm/include/llvm/Analysis/MemorySSAUpdater.h index 1e0f2c7c556..48202f7264b 100644 --- a/llvm/include/llvm/Analysis/MemorySSAUpdater.h +++ b/llvm/include/llvm/Analysis/MemorySSAUpdater.h @@ -93,11 +93,11 @@ public: void moveAfter(MemoryUseOrDef *What, MemoryUseOrDef *Where); void moveToPlace(MemoryUseOrDef *What, BasicBlock *BB, MemorySSA::InsertionPlace Where); - /// `From` block was spliced into `From` and `To`. - /// Move all accesses from `From` to `To` starting at instruction `Start`. - /// `To` is newly created BB, so empty of MemorySSA::MemoryAccesses. - /// Edges are already updated, so successors of `To` with MPhi nodes need to - /// update incoming block. + /// `From` block was spliced into `From` and `To`. There is a CFG edge from + /// `From` to `To`. Move all accesses from `From` to `To` starting at + /// instruction `Start`. `To` is newly created BB, so empty of + /// MemorySSA::MemoryAccesses. Edges are already updated, so successors of + /// `To` with MPhi nodes need to update incoming block. /// |------| |------| /// | From | | From | /// | | |------| @@ -108,12 +108,12 @@ public: /// |------| |------| void moveAllAfterSpliceBlocks(BasicBlock *From, BasicBlock *To, Instruction *Start); - /// `From` block was merged into `To`. All instructions were moved and - /// `From` is an empty block with successor edges; `From` is about to be - /// deleted. Move all accesses from `From` to `To` starting at instruction - /// `Start`. `To` may have multiple successors, `From` has a single - /// predecessor. `From` may have successors with MPhi nodes, replace their - /// incoming block with `To`. + /// `From` block was merged into `To`. There is a CFG edge from `To` to + /// `From`.`To` still branches to `From`, but all instructions were moved and + /// `From` is now an empty block; `From` is about to be deleted. Move all + /// accesses from `From` to `To` starting at instruction `Start`. `To` may + /// have multiple successors, `From` has a single predecessor. `From` may have + /// successors with MPhi nodes, replace their incoming block with `To`. /// |------| |------| /// | To | | To | /// |------| | | |