diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-04-18 19:25:26 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-04-18 19:25:26 +0000 |
commit | a8f720d695e00192cc5816e10a7c52ade8446813 (patch) | |
tree | 4b1b58f850df113e5258f5e10561b6e180f56597 /lib/CodeGen/SimpleRegisterCoalescing.cpp | |
parent | 883d260045500864a42dd8728f8c117a59720658 (diff) |
Correct comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r-- | lib/CodeGen/SimpleRegisterCoalescing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp index 9bff72e37c..6ad8bf5401 100644 --- a/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -466,8 +466,8 @@ SimpleRegisterCoalescing::UpdateRegDefsUses(unsigned SrcReg, unsigned DstReg, O.setSubReg(0); } else { // Sub-register indexes goes from small to large. e.g. - // RAX: 0 -> AL, 1 -> AH, 2 -> AX, 3 -> EAX - // EAX: 0 -> AL, 1 -> AH, 2 -> AX + // RAX: 1 -> AL, 2 -> AX, 3 -> EAX + // EAX: 1 -> AL, 2 -> AX // So RAX's sub-register 2 is AX, RAX's sub-regsiter 3 is EAX, whose // sub-register 2 is also AX. if (SubIdx && OldSubIdx && SubIdx != OldSubIdx) |