[llvm] r307692 - [NewGVN] Clarify the function invariants formatting them properly.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 12:15:36 PDT 2017
Author: davide
Date: Tue Jul 11 12:15:36 2017
New Revision: 307692
URL: http://llvm.org/viewvc/llvm-project?rev=307692&view=rev
Log:
[NewGVN] Clarify the function invariants formatting them properly.
Modified:
llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp?rev=307692&r1=307691&r2=307692&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp Tue Jul 11 12:15:36 2017
@@ -2061,9 +2061,10 @@ Value *NewGVN::getNextValueLeader(Congru
//
// The invariants of this function are:
//
-// I must be moving to NewClass from OldClass The StoreCount of OldClass and
-// NewClass is expected to have been updated for I already if it is is a store.
-// The OldClass memory leader has not been updated yet if I was the leader.
+// - I must be moving to NewClass from OldClass
+// - The StoreCount of OldClass and NewClass is expected to have been updated
+// for I already if it is is a store.
+// - The OldClass memory leader has not been updated yet if I was the leader.
void NewGVN::moveMemoryToNewCongruenceClass(Instruction *I,
MemoryAccess *InstMA,
CongruenceClass *OldClass,
More information about the llvm-commits
mailing list