summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-01-09 10:32:30 +0000
committerCameron Zwarich <zwarich@apple.com>2011-01-09 10:32:30 +0000
commita5910d1b3189ab6b29a7fa70118cd6302e54fa51 (patch)
tree19a5c63830b49a3191284daa63562f18428da44e /llvm/lib/CodeGen
parent43f6d1b67e3f0abeafe0952d6af76e42f8256e08 (diff)
downloadbcm5719-llvm-a5910d1b3189ab6b29a7fa70118cd6302e54fa51.tar.gz
bcm5719-llvm-a5910d1b3189ab6b29a7fa70118cd6302e54fa51.zip
Add an informative comment.
llvm-svn: 123114
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/StrongPHIElimination.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp
index 5c70423ccec..94a86f24fbf 100644
--- a/llvm/lib/CodeGen/StrongPHIElimination.cpp
+++ b/llvm/lib/CodeGen/StrongPHIElimination.cpp
@@ -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
OpenPOWER on IntegriCloud