[llvm] r340192 - [MemorySSA] Update comment to better describe cfg change (NFC).

Alina Sbirlea via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 20 11:15:02 PDT 2018


Author: asbirlea
Date: Mon Aug 20 11:15:02 2018
New Revision: 340192

URL: http://llvm.org/viewvc/llvm-project?rev=340192&view=rev
Log:
[MemorySSA] Update comment to better describe cfg change (NFC).

Modified:
    llvm/trunk/include/llvm/Analysis/MemorySSAUpdater.h

Modified: llvm/trunk/include/llvm/Analysis/MemorySSAUpdater.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/MemorySSAUpdater.h?rev=340192&r1=340191&r2=340192&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/MemorySSAUpdater.h (original)
+++ llvm/trunk/include/llvm/Analysis/MemorySSAUpdater.h Mon Aug 20 11:15:02 2018
@@ -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




More information about the llvm-commits mailing list