summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlina Sbirlea <asbirlea@google.com>2018-08-20 18:15:02 +0000
committerAlina Sbirlea <asbirlea@google.com>2018-08-20 18:15:02 +0000
commitb35af157c1735a18654534300717bd6a1901d03d (patch)
treee6d71e06bad6dc123d63685b5a11df47c19da7a4
parent7f792cab1230096fd420c3bbe3cdf32024d477f3 (diff)
downloadbcm5719-llvm-b35af157c1735a18654534300717bd6a1901d03d.tar.gz
bcm5719-llvm-b35af157c1735a18654534300717bd6a1901d03d.zip
[MemorySSA] Update comment to better describe cfg change (NFC).
llvm-svn: 340192
-rw-r--r--llvm/include/llvm/Analysis/MemorySSAUpdater.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Analysis/MemorySSAUpdater.h b/llvm/include/llvm/Analysis/MemorySSAUpdater.h
index 38f08c1eebd..1e0f2c7c556 100644
--- a/llvm/include/llvm/Analysis/MemorySSAUpdater.h
+++ b/llvm/include/llvm/Analysis/MemorySSAUpdater.h
@@ -124,9 +124,9 @@ public:
/// |------| |------|
void moveAllAfterMergeBlocks(BasicBlock *From, BasicBlock *To,
Instruction *Start);
- /// BasicBlock Old had New, an empty BasicBlock, added directly before it,
- /// and the predecessors in Preds that used to point to Old, now point to
- /// New. If New is the only predecessor, move Old's Phi, if present, to New.
+ /// A new empty BasicBlock (New) now branches directly to Old. Some of
+ /// Old's predecessors (Preds) are now branching to New instead of Old.
+ /// If New is the only predecessor, move Old's Phi, if present, to New.
/// Otherwise, add a new Phi in New with appropriate incoming values, and
/// update the incoming values in Old's Phi node too, if present.
void
OpenPOWER on IntegriCloud