projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
883d260
)
Correct comment.
author
Evan Cheng
<evan.cheng@apple.com>
Fri, 18 Apr 2008 19:25:26 +0000
(19:25 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Fri, 18 Apr 2008 19:25:26 +0000
(19:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49913
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SimpleRegisterCoalescing.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SimpleRegisterCoalescing.cpp
b/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 9bff72e37cc8ef329dfea237cb1993044c66ea55..6ad8bf54017537230ddbbfcbb1864d7d620bd9cf 100644
(file)
--- 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)