Add an informative comment.
authorCameron Zwarich <zwarich@apple.com>
Sun, 9 Jan 2011 10:32:30 +0000 (10:32 +0000)
committerCameron Zwarich <zwarich@apple.com>
Sun, 9 Jan 2011 10:32:30 +0000 (10:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123114 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/StrongPHIElimination.cpp

index 5c70423cceccb980a95750866dc1de066771d59b..94a86f24fbf6887878bed1b5dd82970778abd521 100644 (file)
@@ -89,7 +89,15 @@ namespace {
     /// Add a register in a new congruence class containing only itself.
     void addReg(unsigned);
 
-    /// Join the congruence classes of two registers.
+    /// Join the congruence classes of two registers. This function is biased
+    /// towards the left argument, i.e. after
+    ///
+    /// addReg(r2);
+    /// unionRegs(r1, r2);
+    ///
+    /// the leader of the unioned congruence class is the same as the leader of
+    /// r1's congruence class prior to the union. This is actually relied upon
+    /// in the copy insertion code.
     void unionRegs(unsigned, unsigned);
 
     /// Get the color of a register. The color is 0 if the register has been